Fix flake8 and pep257 errors.