def getSelectedElements(): global selectedElements return asSeq(selectedElements)
def getSelection(): global selection return asSeq(selection)
def isElementList(x): return isList(x) and pyalaocl.asSeq(x).forAll(isElement)