Example on how to parse and generate CSV files in python