These variables should not be set using putenv in the Script Editor while Maya is running. Instead, they should be set before launching Maya, for example, in the maya.env file, with your system variables, or in the command window before launching Maya.