first tool (flatten) in itertools