code: def to_dict(self):
          
          dictator = Script.to_dict(self)
          # the dynamically created ScriptIterator classes have a generic name
          # replace this with ScriptIterator to indicate that this class is of type ScriptIterator
          dictator[self.name]['class'] = 'ScriptIterator'
  
          return dictator
docs: Returns: itself as a dictionary