Found that elegant model I've been looking for, yay! My previous modeling was overly complicating the problem, and failing at solving all corner cases. New one should fix them all!
if __name__ == "__main__"
unicodedata2