Using Python secondary development solidwork2018

Using Python secondary development solidwork2018, I encountered a pack and go problem, can any big brother demonstrate, how to execute packandgo? thanks,

       sw_app = win32com.client.Dispatch(f'SldWorks.Application.{self.version - 1992}')
       sw_app.CommandInProgress = True
       sw_app.Visible = True

       # inf
       option = win32com.client.VARIANT(pythoncom.VT_BYREF | pythoncom.VT_I4, 32)
       errors = win32com.client.VARIANT(pythoncom.VT_BYREF | pythoncom.VT_I4, 0)
       warnings = win32com.client.VARIANT(pythoncom.VT_BYREF | pythoncom.VT_I4, 0)
       sw_doc = sw_app.OpenDoc6(location_demo,doc_type, 1, "", errors, warnings)
       ext = sw_doc.Extension
       pack_and_go = ext.GetPackAndGo

       key_methods = [
           'SetDocumentSaveToNames',
           'Extension',
           'SavePackAndGo',
           'GetPackAndGo',
           'GetMassProperties',
           'IncludeDrawings',
           'IncludeSuppressed',
           'IncludeSimulationResults',
           'GetDocumentCount',
           'GetDocuments',
           'SetSaveToName',
           'SetNewName',
           'SaveToDisk',
           'GetDocumentsNamesCount',
           'GetDocumentNames',
           'SetFolder',
           'SaveToFolder',
           'SetZipIt',
           'SetViewAsPDF'
       ]
       for method in key_methods:
           if hasattr(pack_and_go, method):
               print(f"✓ {method}()")
           else:
               print(f"✗ {method}")
       sw_app.CommandInProgress = False
       pythoncom.CoUninitialize()