Update environ.py

Fixed logging error. This was raised when I had PIL enabled locally which isn't supported by the SDK.