title: Script to update 'Table of content' in docx through Python
body: <p>Is there a way to auto update 'Table of contents' section in word document (docx) through python. This means if a user add content in the document, the table of content section get update automatically after running python script.</p>
  <p>For example, If user adds new header in document, the script should update 'Table of Content' with new header and also update corresponding page numbers. In case he enters some new information somewhere in between then the corresponding page number should also be updated.</p>
  <p>Is there any utility available for this in Python?</p>