Python coding for GPS waypoints

I am making a GPS guided car with Raspberry Pi, which will run on a predefined path. Can anybody help me with the coding please? Thanks.
I am using Raspberry pi, Ultrasonic sensor, GPS module, Compass, Servo motors for car.