def get_opt(kwds, keys, init_val):
    """return value source dictionary

    ex.) 
    n = get_opt(kwds, ['n', 'name'], "Copy#")
    """
    val = init_val
    if isinstance(keys, list):
        for k in keys:
            val = kwds.get(k, val)
    return val