python scripts for reading data and making .csv files