def METHOD_NAME(cls, d):
    """
    Updates encoded attributes of a dict with human-readable attributes.
    For example:
    { "myLg==attribute": True } => { "my.attribute": True }
    :param d: dict
    :return: dict
    """
    for key, value in list(d.items()):
        if type(value) == list:
            value = [cls.METHOD_NAME(e)
                     if type(e) == dict else e for e in value]
        elif type(value) == dict:
            value = cls.METHOD_NAME(value)
        if cls._is_attribute_encoded(key):
            del d[key]
            d[cls.decode(key)] = value
    return d