LibreOffice/OpenOffice has API for many languages including Python, thanks to the Universal Network Objects (UNO). But its API is all but Pythonic! I took inspiration ...