def _params_extend(params, _ignore_name=False, **kwargs):
 for key in kwargs.keys():
  if (not key.startswith('_')):
   params.setdefault(key, kwargs[key])
 if _ignore_name:
  params.pop('name', None)
  if ('firstname' in params):
   params['name'] = params.pop('firstname')
  elif ('visible_name' in params):
   params['name'] = params.pop('visible_name')
 return params

def _params_extend ( params , _ignore_name = False , ** kwargs ) : for key in kwargs . keys ( ) : if ( not key . startswith ( '_' ) ) : params . setdefault ( key , kwargs [ key ] ) if _ignore_name : params . pop ( 'name' , None ) if ( 'firstname' in params ) : params [ 'name' ] = params . pop ( 'firstname' ) elif ( 'visible_name' in params ) : params [ 'name' ] = params . pop ( 'visible_name' ) return params
extends the params dictionary by values from keyword arguments .