Note: This project is stale and I am no longer working on it. I am now working on a new library module called odslib-python which does basically the same thing, but is a complete rewrite of the code ro make it more object oriented and both Python 2 and 3 compatible. The new project can be found at http://code.google.com/p/odslib-python/.
The OpenOffice.org Utility Library (ooolib) is actually more than one library module. Included are a Python module (ooolib-python) and a Perl module (ooolib-perl). The Python module is currently focused on Calc and can be used to create OpenDocument Format Calc spreadsheets. The Perl module can be used to create simple OpenOffice.org Calc spreadsheet and Writer text documents. (Note: The files created by ooolib-perl are pre-ODF files.)