flattening list
Yield in Python – beyond the data generation