Minor: Improve debugging output in words.py