def OpenDocumentSpreadsheet():
 doc = OpenDocument('application/vnd.oasis.opendocument.spreadsheet')
 doc.spreadsheet = Spreadsheet()
 doc.body.addElement(doc.spreadsheet)
 return doc

def OpenDocumentSpreadsheet ( ) : doc = OpenDocument ( 'application/vnd.oasis.opendocument.spreadsheet' ) doc . spreadsheet = Spreadsheet ( ) doc . body . addElement ( doc . spreadsheet ) return doc
creates a spreadsheet document .