code: def to_dict(self):
          
          result = super(ActorHandler, self).to_dict()
          result["type"] = "ActorHandler"
          del result["config"]["actors"]
          result["actors"] = []
          for actor in self.actors:
              result["actors"].append(actor.to_dict())
          return result
docs: Returns a dictionary that represents this object, to be used for JSONification.
  
          :return: the object dictionary
          :rtype: dict