def _unwrap_response(resp):
 for (resp_key, resp_data) in resp.items():
  if resp_key.endswith('_response'):
   for (result_key, result) in resp_data.items():
    if result_key.endswith('_result'):
     return result
   return {}
 raise ValueError(resp)

def _unwrap_response ( resp ) : for ( resp_key , resp_data ) in resp . items ( ) : if resp_key . endswith ( '_response' ) : for ( result_key , result ) in resp_data . items ( ) : if result_key . endswith ( '_result' ) : return result return { } raise ValueError ( resp )
get the actual result from an iam api response .