def run(command):
    """Run a shell command.

    :return str: Stdout
    """
    p = Popen(command.split(), stdout=PIPE, stderr=PIPE)
    (stdout, stderr) = p.communicate()
    return (p.returncode, [line.strip() for line in stdout.splitlines()],
            [line.strip() for line in stderr.splitlines()])
Run a shell command.

    :return str: Stdout