minor tweaks to code examples for NLTK 3