Take a picture with fswebcam and produce a movie with mencoder. Also move a stepper motor with GPIO.

Non-interactive version, blocking script.
Needs to be run as root at the moment on the RPI.
Needs python-rpi.gpio.