def get_class(self, name):
        """Given a class name in the given modules returns the class."""
        klass = None
        for m in self.modules:
            if hasattr(m, name):
                return getattr(m, name)
        if hasattr(__builtin__, name):
            klass = getattr(__builtin__, name)
        if not klass:
            try:
                klass = self.nodes[name].klass
            except __HOLE__:
                raise KeyError, "Cannot find class of name %s"%name
        return klass
dataset/ETHPy150Open VisTrails/VisTrails/contrib/titan/class_tree.py/ClassTree.get_class