def children(node):
    """Returns a list containing all child nodes 
of a Traversable type node. Returns empty list
when the node has no children. Used by BF/DF/Flat
iterative tree visitor functions."""
    try:
        k = node.getChildren()
        return k
    except:
        return []