def isSurrogatePair(data):
    return ((len(data) == 2) and (ord(data[0]) >= 55296) and (ord(data[0]) <= 56319) and (ord(data[1]) >= 56320) and (ord(data[1]) <= 57343))
def isSurrogatePair(data):
    return ((len(data) == 2) and (ord(data[0]) >= 55296) and (ord(data[0]) <= 56319) and (ord(data[1]) >= 56320) and (ord(data[1]) <= 57343))