Statistical Methods in Linguistics course tasks (NLTK, python 2.7.7)