How to deal with PyCapsule type inside Python

I'm trying to pass the object from QtGui.QWidget.effectiveWinId() to win32gui.SetWindowLong() effectiveWinId() is returning: <capsule object NULL at 0x027C9BF0> <class 'PyCapsule'&g...