code: def _gatherDataFromLookups(gpos, scriptOrder):
      
      lookupIndexes = _gatherLookupIndexes(gpos)
      seenLookups = set()
      kerningDictionaries = []
      leftClassDictionaries = []
      rightClassDictionaries = []
      for script in scriptOrder:
          kerning = []
          leftClasses = []
          rightClasses = []
          for lookupIndex in lookupIndexes[script]:
              if lookupIndex in seenLookups:
                  continue
              seenLookups.add(lookupIndex)
              result = _gatherKerningForLookup(gpos, lookupIndex)
              if result is None:
                  continue
              k, lG, rG = result
              kerning.append(k)
              leftClasses.append(lG)
              rightClasses.append(rG)
          if kerning:
              kerningDictionaries.append(kerning)
              leftClassDictionaries.append(leftClasses)
              rightClassDictionaries.append(rightClasses)
      return kerningDictionaries, leftClassDictionaries, rightClassDictionaries
docs: Gather kerning and classes from the applicable lookups
      and return them in script order.