Python script to automate document conversions using LibreOffice/OpenOffice.org