Python Check If Variable Is Numeric