def get_dict_value(value, attributes, default=None):
    """Get key value from dictionary and return default if the key does not exist."""
    for key in attributes.split("."):
        value = value.get(key, None)
        if value is None:
            return default
    return value