changed os.getlogin() to os.environ['USER'] to get logged in user