Create MS Word document

Options

python-docx


mkdir python-docx
cd python-docx
py -3 - venv venv
venv\scripts\activate
pip install python-docx
import docx

Note another library docx exists and can be confused with python-docx.   The document structure consists of a Document object, with Paragraph objects, followed by one or more Run objects.  

Python-Docx documentation