1.0.9: handle infinite tokens
pep8