Unicode bug

I went with `env = {str(key): str(value) for key, value in env.items()}` as it is robust to any future additions to the `env` dictionary.
Can't you just use `unicode`? I don't think `__unicode__` is ever called in Python 3.