Mod: add support for py3k

Tested under Python 3.4.0 but should work with any py3k version