move code to h2o_util.py for guessing whether h2o might think a token is a number