Script for creating camera path

Does anyone know how to program a camera path using a Python script? I want to add a few key nodes and then make the camera go along a smooth curve between those points.

Just add keyframes at ‘a few key nodes’ and let blender do the magic behind the scenes I would imagine.

Thanks, I guess the word keyframe is all I needed to know.