Merge pull request #171 from mgorny/master

Fix jinjaext compatibility with Python 3