Okay. I am wondering if this is the right place for list.txt to be generated. 

Also, lets not make the name "list.txt" hardcoded here, and instead make it so that its taken from some global constant or some public method like get_data_csv_list_file(), since it will be used in the diff code also and potentially more places.