fixed python async mode with the improved api