CFY-973 flake8 fix