slightly cleaner printing for nwords=1 vs nwords>1 in anagram.py