def Children(it):
    """ Return a generator to the children of all the nodes in the passed
  iterable."""
    for n in it:
        for c in n.GetFlattenedChildren():
            if c is not None:
                yield c
