code: def execute_command(command=None):
      
      process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
      stdout, stdin = process.communicate()
      process.wait()
      return (stdout, stdin), process.returncode
docs: Execute a command and return the stdout and stderr.