def installed(package):
  """Confirm that a package is installed"""
  # TODO: Make this work with apt/dpkg
  try:
    return 0 > grepc(execute("yum list installed %s" % package), package)
  except Exception, _e:
    return False
dataset/ETHPy150Open NumentaCorp/agamotto/agamotto/package.py/installed/swapped operands of `>`