from unicodedata import name, category for char in ws: print(hex(ord(char)), repr(char), category(char), name(char, None))