move UnicodeDictWriter out of the function
renumber
ancestors
junk