py2/3 use text_type instead of unicode