'Find a resource and return a file object, or raise IOError.'

def open(self, name, mode='r', *args, **kwargs):

    fname = self.lookup(name)
    if (not fname):
        raise IOError(('Resource    %r    not    found.' % name))
    return self.opener(fname, mode=mode, *args, **kwargs)
