fixed problems reported by flake8