<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unredirect_subwindows(self, update, onerror = None):
 """Stop redirecting the hierarchies of children to this window. """

    RedirectWindow(display = self.display,
                   onerror = onerror,
                   opcode = self.display.get_extension_major(extname),
                   window = self,
                   update = update,
                   )