Added tagger.py, supplying some helper methods for tag transitions.