This script is usefull for animate object with path consraint.
I wrote to animate cars in a bigger simulation (150-200 cars).
make key everywhere, where you would like to change the speed. (intersection, rounabouts etc.) And then modify them with the tools.
At the last, U can set the constraint to bezier for the smoother movement.