[python] How can I force Python's file.write() to use the same newline format in Windows as in Linux ("\r\n" vs. "\n")?