def send_interrupt(process):
 try:
  os.kill(process.pid, SIGINT)
 except OSError:
  pass
 except TypeError:
  pass
 except UnboundLocalError:
  pass
 except AttributeError:
  pass

def send_interrupt ( process ) : try : os . kill ( process . pid , SIGINT ) except OSError : pass except TypeError : pass except UnboundLocalError : pass except AttributeError : pass
sends interrupt signal to processs pid .