Update mapping + scores after expanded substructures in nltk