Make sure all variables use the correct prefix in environ.py

Remove the global variables from the module level and only use the functions.