Fix crash because Python 3 C API does not have PyNumber_Int

Here is the call that caused the crash. Everything seems to work just as well with this fix. And it definitely is much simpler.