newline only in py3 and only needed on windows