Updates to the python scripts to make the CSV outputs work