[Fix] TemplateSyntaxError is not found
[Add] Python 3 support (untested)