Python 2.5 compatibility fix
Use locals() for tests in TestInterpreterAPI

It is better to check that Interpreter does not fail with the
real name space.  Previously the doctest using locals() failed
because of the bug in _import_raw_namespace.