def set_signals(sig_handler_dict):
 for (s, h) in sig_handler_dict.items():
  signal.signal(s, h)

def set_signals ( sig_handler_dict ) : for ( s , h ) in sig_handler_dict . items ( ) : signal . signal ( s , h )
set the signal with the handler from the input dict .