Update planner.py

Angela's changes