Changed templates to Mako