def _append_params(oauth_params, params):
 merged = list(params)
 merged.extend(oauth_params)
 merged.sort(key=(lambda i: i[0].startswith('oauth_')))
 return merged

def _append_params ( oauth_params , params ) : merged = list ( params ) merged . extend ( oauth_params ) merged . sort ( key = ( lambda i : i [ 0 ] . startswith ( 'oauth_' ) ) ) return merged
append oauth params to an existing set of parameters .