Saving data as .csv files

looks like “points” is None, what is the rest of your code?