How about renaming 'ari' to 'client'?

client = SwaggerClient(...)
client.pet.getPetById(petId=2).text