Sanitizing environment variables in python 2 on windows

Otherwise, the wrapper won't work there