abstracted evaluation of csv to a function, evaluate_csv. Also autopep8