Fix crash because Python 3 C API does not have PyNumber_Int
Merge pull request #2 from dlech/python3

Fix crash because Python 3 C API does not have PyNumber_Int