<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_window(self, update, onerror = None):
 """Stop redirecting this window hierarchy. """

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