Recursive generator detection makes my head hurt, but I think this works...

.... Good luck.

BOSTON PYTHON MEETUP RULEZ.

Great to meet you!