code: def __dict_to_BetterDict(self, attr):
          
          if type(self[attr]) == dict:
              self[attr] = BetterDict(self[attr])
  
          return self[attr]
docs: Convert the passed attr to a BetterDict if the value is a dict
  
          Returns: The new value of the passed attribute.