Autopilot in Synchronous Mode

Hi,

I want to modify the synchronous_mode.py script in PythonAPI/examples folder to run the car on autopilot. Can someone guide me how I can do that.

Thanks for the help