minor flake8 cleanups