def isPortOpen(host, port):
  s = socket.socket()
  try:
    s.connect((host, port))
    return True
  except socket.error:
    return False
prune_signatures tries to remove redundant signatures to reduce
dataset/ETHPy150Open NumentaCorp/agamotto/agamotto/network.py/isPortOpen--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/vtk/vtk_wrapper/parse.py/prune_signatures