divide.py modifications.