Python Test If Variable Is Numeric Good