Implemented metaprogramming using a Template Engine from Jinja2