fixed flake8 issues