Added PyLong_CheckExact for both python 2 and 3, while PyInt_CheckExact for 2
only