Word document manipulation with python-docx - handling split placeholders, headers/footers, nested tables