code: def download_mission():
      
      print(" Download mission from vehicle")
      missionlist=[]
      cmds = vehicle.commands
      cmds.download()
      cmds.wait_ready()
      for cmd in cmds:
          missionlist.append(cmd)
      return missionlist
docs: Downloads the current mission and returns it in a list.
      It is used in save_mission() to get the file information to save.