Python 3 Generator

Thanks to boxmein!