def get_value(header_dict, header_name, default=None, strip_value=""):
    """ Return last header value, or default value (None)
    If strip_value, remove strip_value (e.g., 'keep-alive') if it occurs in addition to other values
    """
    if header_name in header_dict:
        value = header_dict[header_name][-1]
        if value and strip_value:
            new_value = ", ".join(x.strip() for x in value.split(",") if x.strip().lower() != strip_value.lower())
            return new_value or value
        else:
            return value
    else:
        return default