code: def save_waypoints(self, filename):
          '''save waypoints to a file'''
          try:
              #need to remove the leading and trailing quotes in filename
              self.wploader.save(filename.strip('"'))
          except Exception as msg:
              print("Failed to save %s - %s" % (filename, msg))
              return
          print("Saved %u waypoints to %s" % (self.wploader.count(), filename)f save_waypoints(self, filename):
          '''save waypoints to a file'''
          try:
              #need to remove the leading and trailing quotes in filename
              self.wploader.save(filename.strip('"'))
          except Exception as msg:
              print("Failed to save %s - %s" % (filename, msg))
              return
          print("Saved %u waypoints to %s" % (self.wploader.count(), filename))
docs: save waypoints to a file