Fix a number of flake8 issues.