updates for NLTK 3