Python Generators Framework