fixed flake8 errors