Resolve python3 flake8 issues.