... and you have to start your py file with: import uno, sys, socket from com.sun.star.beans import PropertyValue
... and your start_oo_server.bat file with: @SET PYTHONPATH=C:\Program Files\OpenOffice.org 2.0\program;C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\lib @SET PATH=C:\Program Files\OpenOffice.org 2.0\program;C:\Program Files\OpenOffice.org 2.0\program\python-core-2.3.4\bin -- http://mail.python.org/mailman/listinfo/python-list