How to run a word Macro via Python?

import os
import comtypes.client

path=r"path to the .docm file where I saved the vba macro"

word=comtypes.client.CreateObject("Word.Application")
word.Documents.Open(path,ReadOnly=1)
word.Run("Project.Modulo1.ConvertDoc")
word.Documents(1).Close(SaveChanges=0)
word.Application.Quit()
wd=0

I tried this, but got the following error:

"NULL COM Pointer Acess"

Author: MufasaComp, 2020-07-15