Python Check If Data Type Is Numeric