One handy way to animate objects is with animation paths. An animation path is made up of a series of points in time where a change in the position, size, or orientation occurs. Animation paths interpolate between these "control points" so that you get a smooth transition between them. Each control point has a time stamp which specifies it's order along the path.
You can use the same animation path to animate any number of objects by linking those objects to the path. Animation points can be played once, they can be looped, and they can be set to swing back and forth along their timeline. The nature of the interpolation between control points can either be set over the entire animation path or at individual control points.
You can also link viewpoints to animation paths, although there are other commands specific to viewpoint movement.
To create an animation path, use the steps outlined in the example code below or see the full sample script at \examples\animationPaths\animatepath.py: