Use Python 2.x syntax (instead of yield from) for compatibility.