This post explains how to use the twitter stream API with Python.

Real-Time Twitter analysis with PyCurl
glowingpython.blogspot.com