def __update(self, **entries):
    for (k, v) in entries.items():
        if isinstance(v, dict):
            self.__dict__[k] = DictToAttrDeep(**v)
        else:
            self.__dict__.update(entries)
def __update(self, **entries):
    for (k, v) in entries.items():
        if isinstance(v, dict):
            self.__dict__[k] = DictToAttrDeep(**v)
        else:
            self.__dict__.update(entries)