python scripts to convert data into JS json and CSV files