Python Check If Object Is An Integer