some flake8 fixes