Hi I'm have a tool (not written by me) that uses pickle to dump os.environ. It works on python 2.7 but fails under python3. Reproduce:
```
import os
import sys
import pickle
pickle.dump(os.environ, sys.stdout)
```
Python3 error:
```
AttributeError: Can't pickle local object '_createenviron.<locals>.decode'
```
Any ideas?