fix csv conversion script

...more generalized accross different datasets
fix conflict after making a few more changes

related to data not validating correctly