Python Replace Newline With Comma