Made the code more readable by checking os.geteuid() == 0