correct some minor flake8 accidentally introduced by #769