code: def getPredictiveCells(self):
      
      previousCell = None
      predictiveCells = []
      for segment in self.activeSegments:
        if segment.cell != previousCell:
          predictiveCells.append(segment.cell)
          previousCell = segment.cell
  
      return predictiveCells
docs: Returns the indices of the predictive cells.
  
      :returns: (list) Indices of predictive cells.