def _get_client_and_key(url, user, password, verbose=0):
 session = {}
 session['client'] = six.moves.xmlrpc_client.Server(url, verbose=verbose, use_datetime=True)
 session['key'] = session['client'].auth.login(user, password)
 return session

def _get_client_and_key ( url , user , password , verbose = 0 ) : session = { } session [ 'client' ] = six . moves . xmlrpc_client . Server ( url , verbose = verbose , use_datetime = True ) session [ 'key' ] = session [ 'client' ] . auth . login ( user , password ) return session
return the client object and session key for the client .