def def_get(target, key, default=None):
    """Special get function. Return default if the value is None."""
    value = target.get(key, default)
    if value is None:
        return default
    return value
