Use smart_text instead of unicode

This should fix EditModelTemplateTagTest in python 3