I'm using Python 3.6.1. I tried pulling the latest version of your script and it stopped on the following:
Traceback (most recent call last):
File "readDb.py", line 132, in <module>
writeCSV(surveys, outDir)
File "readDb.py", line 98, in writeCSV
with open(addfile, 'w') as outFile:
FileNotFoundError: [Errno 2] No such file or directory: './out/survey_Wetland_Arid_Veg_Tree_Repeat_adds.csv'
Do I need to create the ./out directory or file first?
If it matters, I'm running this script on a mac running macOS 10.13.6.
Update: Actually, I just created the out directory and the script processed just fine. Looking over the CSVs now.