# import necessary packages from win32com import client def doc2docx(doc_name): word = client.Dispatch("Word.application") doc = word.Documents.Op