def add_params_to_uri(uri, params):
 (sch, net, path, par, query, fra) = urlparse(uri)
 query = add_params_to_qs(query, params)
 return urlunparse((sch, net, path, par, query, fra))

def add_params_to_uri ( uri , params ) : ( sch , net , path , par , query , fra ) = urlparse ( uri ) query = add_params_to_qs ( query , params ) return urlunparse ( ( sch , net , path , par , query , fra ) )
add a list of two-tuples to the uri query components .