Python Animation Rendering

So I have a script that creates a mesh of a robot given a text file input, and it will position it for all the frames necessary for an animation. Now I need to render an Image from each of these frames, and compile them all into a single video.

Any help?