if record:
    name = record[1].strip()
if name and name[0] != '<':
    names[char] = name + chr(0)
How can I determine a Unicode character from its name in Python, even if that character is a control character?