add compatibility with Python3, test with win7 x64 + Python 3.4.2