wow such windows support, amaze

Various tweaks to add support for Windows. This has been tested as working when using "mintty" with "bash".
It doesn't work in Windows' default "terminal" (cmd.exe), doh.

Do note the `.encode('utf8')` though, it was required for me, but I'm not sure if you want that.. :)
wow python3 fix after windoze patch