Fix failure on Python 2.x

Would fail with `AttributeError: 'dict' object has no attribute 'str'` because `__builtins__` is a dict in modules. There is a `__builtin__` module in the standard library that does what is wanted here.