Fixes for tokenize in Python 3.3