nl: kwargs is a dictionary with elements: config dictionary element under k key for k, for every k in result of function valid_ident,
code: kwargs = dict ( ( k , config [ k ] ) for k in config if valid_ident ( k ) )