API for OpenDocument in Python