We should use Python's built-in csv module here.  See http://docs.python.org/2/library/csv.html