You can check this script that I’ve made. I think it can help you.
This script parses a directory tree looking for python modules and packages and creates ReST files appropriately to create code documentation with Sphinx. It also creates a modules index.
UPDATE
This script is now part of Sphinx 1.1 as apidoc.