s = unicodedata.normalize('NFKD', s)
s = ''.join(c for i, c in enumerate(s) if c != ' ' or unicodedata.combining
    (s[i + 1]) == 0)
s = unicodedata.normalize('NFC', s)
How do I reverse Unicode decomposition using Python?