Fixed most Flake8 violations.