I have moved the variables addOaValid and oaAdder to the cmdList() function and removed the global keyword.
I have also removed the passing of oaAdder variable to cmd_list() function as
I have changed the if-else statement in the menuSelector() function to a switch statement, using a python dictionary.
The switch statement checks if the menuChoice variable exists as a key in the dictionary and returns the corresponding value,