Correctly adding eol when done with to_csv