corrected flake8 errors