Saving the list on to a csv file