Migrated to python27, jinja2, some other minor changes.