ps9.py Schedule Optimization