code: def shell_exec(command):
      
      out = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[0]
      return out.decode('utf-8')
docs: Executes the given shell command and returns its output.