fix most obvious flake8 violations