modified timetabling4.py