def BuildSelections(selectionsToBuild, buildSelections):
    if (len(selectionsToBuild) == 0):
        for buildSelection in buildSelections:
            BuildSelection(buildSelections[buildSelection], buildSelection)
    else:
        for selectionToBuild in selectionsToBuild:
            if (selectionToBuild in buildSelections):
                BuildSelection(buildSelections[selectionToBuild], selectionToBuild)
def BuildSelections(selectionsToBuild, buildSelections):
    if (len(selectionsToBuild) == 0):
        for buildSelection in buildSelections:
            BuildSelection(buildSelections[buildSelection], buildSelection)
    else:
        for selectionToBuild in selectionsToBuild:
            if (selectionToBuild in buildSelections):
                BuildSelection(buildSelections[selectionToBuild], selectionToBuild)