Update factors.py