Create factors.py