Fixed minor flake8 errors