More translation of aia_get_response stuff into Python