Reverted change by commenting out line that modified USER = os.environ["USER"]...
Reverted change by commenting out line that modified USER = os.environ["USER"] to USER = os.getlogin() as this did not work without active terminal.
Reverted change by commenting out line that modified USER = os.environ["USER"] to USER = os.getlogin() as this did not work without active terminal.