fixed reported errors from flake8