RFC 4180 recommends terminating a line in a comma-separated values textfile with CR LF (\r\n in Python). So this just adds the \r.
CR
LF
\r\n
\r