Use six.
Convert to bytes in Python 3.
Require Jinja 2.7 for Python 3 support.