Create dump_to_csv.py

Found on my disk, looks useful