code: def _cmd_exists(cmd):
      
      return _subprocess.call("type " + cmd,
                             shell=True,
                             stdout=_subprocess.PIPE,
                             stderr=_subprocess.PIPE) == 0
docs: check if dependency program is there