Run flake8 over reword.py

And fix the errors.
Merge branch 'flake8'