local: flake8 fixes