This is the Script (Python) "pyLabGroupMenus" in https://engineering.purdue.edu/Wraps/ECO/wrap8/required