fixing flake8 errors