code: def _execute(params, cwd):
      
  
      proc = subprocess.Popen(
          params,
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE,
          cwd=cwd
      )
      stdout, stderr = proc.communicate()
      code = proc.wait()
      if code != 0:
          e = OSError('subprocess exit code for %r was %d: %s' % (params, code, stderr))
          e.stdout = stdout
          e.stderr = stderr
          raise e
      return (stdout, stderr)
docs: Executes a subprocess
  
      :param params:
          A list of the executable and arguments to pass to it
  
      :param cwd:
          The working directory to execute the command in
  
      :return:
          A 2-element tuple of (stdout, stderr)