`PyInt_CheckExact` doesn't exist in python 3.