a few flake8 fixes