code: def save_varlist(filename, varnames, varlist):
          
          variables = {}
          for i, vn in enumerate(varnames):
              variables[vn] = varlist[i]
  
          ExportData.save_variables(filename, variables)
docs: Valid extensions '.pyshelf', '.mat', '.hdf5' or '.h5'
  
          @param filename: string
  
          @param varnames: list of strings
          Names of the variables
  
          @param varlist: list of objects
          The objects to be saved