Fix for Python 3.x compatibility (PyInt_FromLong)

Removed PyInt_FromLong function call.