support for python3

This PR allows snudown to work with python3.

I have only tested this on windows with mingw32.