py: Fix regress with GeneratorExit object becoming truly const.