python 3 compatible token class.

A small cosmetic change to make token more python 3 friendly.