The scheduling program in python