parse a csv file to a python dict