Modify prototype async response handler to handle generic response and convert it to arbitrary Python mapping type