Python Check If A Variable Is Numeric