changes for python 3 compatibility
Token is an interface, move impl to CommonToken