def execute(command, cwd=None, env=None):
    try:
        st = subprocess.PIPE
        proc = subprocess.Popen(
            args=command, stdout=st, stderr=st, stdin=st, cwd=cwd, env=env)

        (output, error) = proc.communicate()
        code = proc.returncode
        return code, output, error

    except __HOLE__ as error:
        return -1, "", error
dataset/ETHPy150Open mozilla/pontoon/pontoon/sync/vcs/repositories.py/execute