How to fix KeyError: 'ENVIRONMENT_VARIABLE' in Python | DevErrors