I've extracted the low level scripts I use to both extend the database and introspect it's contents, and published them on github under the project name pysrd.
The SRD is available from Wizards of the Coast as a set of RTF documents. This of course, is not ideal, but fortunately it is possible to get the data from andargor.com in different database formats, including SQLite. Unfortunately however, not all SRD data is included in these databases. Fortunately, the OpenSRD project includes generated HTML versions of the RTF documents, which can more easily be processed.