Changed os.linesep instances to simply \n

\n is a meta-character which ends up meaning os.linesep anyway.