Create factor.py