Writing recursive generator functions with the yield from statement