linting: fixed issued reported by flake8