'Fake for the builtin __import__.'

def fake_import(self, name, *args, **kwargs):

    module = self._do_import(name)
    if (module is not None):
        return module
    else:
        return self._real_import(name, *args, **kwargs)
