Final trigrams.py assignment