code: def toDict(self):
  		
  
  		# Init the dictionary we will return
  		dRet = {
  			"__name__": self._name
  		}
  
  		# Get the parents dict and add it to the return
  		dRet.update(super(Tree,self).toDict())
  
  		# Return
  		return dRet
docs: To Dict
  
  		Returns the Tree as a dictionary in the same format as is used in
  		constructing it
  
  		Returns:
  			dict