code: def run(command):
      
      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()])
docs: Run a shell command.
  
      :return str: Stdout