Create format_csv.py

This is just the beginning, it's not working yet, complete or tested...