Update factor.py

Fixed capital letter.