code: def unhook_wnd_proc(self):
          
          if not self.__local_wnd_proc_wrapped:
              return
          SetWindowLong(self.__local_win_handle,
                          GWL_WNDPROC,
                          self.__old_wnd_proc)
  
          ## Allow the ctypes wrapper to be garbage collected
          self.__local_wnd_proc_wrapped = None
docs: Restore previous Window message handler