fix for flake8 and factories