fix for win py2.x / py3.x

It looks like py3.x on win doesn't require '\r' to properly split the end of the lines but py2.x does. This should work for both cases plus osx and *nix