delete one by one the vertices of a curve?
You don't actually want a python script to delete points on your curve. If you delete the points on the curve they will be gone, you will need to create new points or reload the blend file if you want to run your animation a second time.

I think animating the curve's bevel factor is closer to what you want.