__builtins__ is a dict in modules in py 2.x, use __builtin__ module.