remove yield from statements for IronPython compatibility