Exporting individual vertices

Is there anyway through Python to access and export the position of individual vertices? I want to make a very specialized script that can take one vertex at a time define its position in every frame of an animation and export it to a file. Anyway this could be done? I have never programmed under Python before, so any suggestions would be extremely helpful with some code samples.

Thanx beforehand!