Python Test If Variable Is Numeric Php