Replaced instances of PyInt_FromLong with PyLong_FromLong