made minor changes to getWords.py