CFY-846 flake8 fix