def METHOD_NAME(self, page, results):
    parent = moosetree.find(results.root, lambda n: n.name == 'div' and 'moose-content' in n['class'])
    for div in self.__modals.get(page.uid, list()):
        div.parent = parent