How can I create a zip archive of a directory structure in Python?
You probably want to look at the zipfile module; there's documentation at http://docs.python.org/library/zipfile.html.
zipfile
You may also want os.walk() to index the directory structure.
os.walk()