Fixed SyntaxError syntax raised by TemplateSyntaxError.
Merge pull request #177 from cag/python3fix

Fixed SyntaxError syntax raised by TemplateSyntaxError.