CFY-1229 flake8 fix