docs: def enable_sig_handler(signal_name, handler):
      '''
      Add signal handler for signal name if it exists on given platform
      '''
      if hasattr(signal, signal_name):
          signal.signal(getattr(signal, signal_name), handler)