How do I change the focal length of a camera with python?
It's in bpy.data.cameras['name of your camera object'].lens, or camera.angle (thanks @ideasman42).

Note that you must have a camera in the scene.