Update factories.py