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
Both files, .sh and .py are working. However! .sh fping func. doesn't work.