Correct type os.sep -> os.linesep for newlines

The doc said it uses os.sep, but it should read os.linesep for default for newlines