Create factories.py