Python Check If A Variable Is An Integer Times