Simplistic templating used for generation of html pages when these should really be generated via a proper template framework
For expediency the html pages that are published, are generated from a simplistic bespoke template approach. This should really be done via one of the many html frameworks that are available for Python.