code: def to_dict(self):
          
          result = super(OptionHandler, self).to_dict()
          result["type"] = "OptionHandler"
          result["options"] = join_options(self.options)
          return result
docs: Returns a dictionary that represents this object, to be used for JSONification.
  
          :return: the object dictionary
          :rtype: dict