CFY-847 flake8 fix