[IMP] Changed LaTeX templates rendering to Mako