another fix in python async mode