Syntax change from python string template to jinja

See commit summary.