Fixes for python3 on windows

Fixes #62