Flattening a shallow list in Python,[image for menuitem in list_of_menuitems for image in menuitem]