def kwargs_extract(default, **kwargs):
    """
    like kwargs_update but extracts keys of default from kwargs

    Returns:
    k -- dictionary based on default update for kwargs
    l -- kwargs without keys defined in default
    """
    k = default.copy()
    l = {}
    for key, val in kwargs.items():
        if key in k.keys():
            k[key] = val
        else:
            l[key] = val
    return k, l
