#! /usr/bin/env python

from subprocess import Popen, PIPE


def _popen(cmd):
    """
    Fork the specified command, returning a tuple of (stdout, stderr)
    """
    return Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE).communicate()

#! /usr/bin/env python

from subprocess import Popen, PIPE


def launch(cmd):
    """
    Fork the specified command, returning a tuple of (stdout, stderr)
    """
    return Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE).communicate()


def get_stdout(cmd):
    """
    Fork the specified command, returning stdout
    """
    return launch(cmd)[0]

Add a wrapper to get just stdout back
Add a wrapper to get just stdout back
