CSV files were being returned as iterator of dictionaries rather than a list. Now being returned as a list of dictionaries.