def set_signal_handlers(signal_handler_map):
 for (signal_number, handler) in signal_handler_map.items():
  signal.signal(signal_number, handler)

def set_signal_handlers ( signal_handler_map ) : for ( signal_number , handler ) in signal_handler_map . items ( ) : signal . signal ( signal_number , handler )
set the signal handlers as specified .