python3 compatibility

disclaimer: I've only tried installing it and compiling all modules with "python -m compilall", haven't tried it on a real python3 project yet, so it might break in unexpected ways.

If so, please let me know, and i'll try testing it in the field asap, unless you beat me to it ;)