unicodedata.normalize()

unicodedata.normalize(form, unistr)

Return the normal form ‘form’ for the Unicode string unistr. Valid values for form are ‘NFC’, ‘NFKC’, ‘NFD’, and ‘NFKD’.