Divide.py

Polished the code and added a new feature along with a function to
choose which function is launched after that.