Place anchors before headings, add python generator script