Python Check If A Variable Is Integer