def unicode(self, string):
try:<EOL><INDENT>return str(string, '<STR_LIT:utf-8>')<EOL><DEDENT>except TypeError:<EOL><INDENT>return string<EOL><DEDENT>
Make sure a string is unicode across Python2/Python3