fix flake8 errors