Python Test If Variable Is Numeric Js