Composite Iterator with Python