[4715] Converted on jinja2 templates.

https://gist.github.com/8r2y5/84babc1ffb2c162df4cf - pylint & nosetest
https://bugzilla.stxnext.pl/show_bug.cgi?id=4715
```C: 22, 0: Invalid constant name "log" (invalid-name)``` :)