test.py: move print_sentences outside of __main__
Token: converted to namedtuple
We get a constructor and equality methods for free.
We lose mutability (not necessarily a loss).