In the transform.py code the list of elifs has elif targets == 'csv': duplicated.
elif targets == 'csv':
UsfmTransform.buildCSV(usfm_dir, build_dir, build_name)
elif targets == 'ascii':
UsfmTransform.buildASCII(usfm_dir, build_dir, build_name)
elif targets == 'csv':
UsfmTransform.buildCSV(usfm_dir, build_dir, build_name)
In the transform.py code the list of elifs has elif targets == 'csv': duplicated.