def unescape_unicode(string):
if string is None:<EOL><INDENT>return string<EOL><DEDENT>string = string.replace("<STR_LIT:\\>", "<STR_LIT>")<EOL>string = string.replace("<STR_LIT>", "<STR_LIT>")<EOL>string = string.replace("<STR_LIT>", "<STR_LIT>")<EOL>return ast.literal_eval("<STR_LIT>" + string + "<STR_LIT>")<EOL>
Python2.7's re module chokes when compiling patterns that have ranges
    between escaped unicode codepoints if the two codepoints are unrecognised
    in the unicode database. For instance:

        re.compile('[\\uAA77-\\uAA79]').findall("hello")

    Ends up matching every character (on Python 2). This problem doesn't occur
    if we're dealing with unicode literals.