convert all raw strings line endings from '\n' to os.linesep .