def _get_session_id(url, username, password):
 res = _req_json_rpc(url, '00000000000000000000000000000000', 'call', 'session', 'login', username=username, password=password)
 return res['ubus_rpc_session']

def _get_session_id ( url , username , password ) : res = _req_json_rpc ( url , '00000000000000000000000000000000' , 'call' , 'session' , 'login' , username = username , password = password ) return res [ 'ubus_rpc_session' ]
get the authentication token for the given host+username+password .