Help: Script to Keyframe & Render

I was getting started on writing a script to keyframme and render an animation when I realised that there may be one online which I can adapt to my problem, and so avoid going into Blender 2.49 API reference. Something easy where I just need to plug in the objects and their coordinates over time.

Does anyone know a good one? Thanks a lot