def set_signal_winch(handler):
 global winch_handler
 old_handler = winch_handler
 winch_handler = handler
 return old_handler

def set_signal_winch ( handler ) : global winch_handler old_handler = winch_handler winch_handler = handler return old_handler
return the old signal handler .