Add function parse_csv(datafile) to simple.py.