code: def addObject(self, featureIndices, name=None):
      
      if name is None:
        name = len(self.objects)
  
      sequence = []
      for f in featureIndices: sequence += [(0, f,)]
  
      self.objects[name] = sequence
docs: Adds a sequence (list of feature indices) to the Machine.