added automate_pan.py