[4758] Converted from Jinja2 to Mako

https://gist.github.com/8r2y5/e7ddd4517a9e9eb4656d - pylint & nosetests
https://bugzilla.stxnext.pl/show_bug.cgi?id=4758