def __translate_root__(self, item):

        if '.' in item:
            parts = item.split('.')
            name = '.'.join(parts[:-1])
            fromlist = parts[-1:]

            module = __import__(name, fromlist=fromlist)
            kallable = getattr(module, parts[-1])
            msg = "%s does not represent a callable class or function."
            if not six.callable(kallable):
                raise TypeError(msg % item)
            return kallable()

        raise ImportError('No item named %s' % item)
Creates a root controller instance from a string root, e.g.,
dataset/ETHPy150Open pecan/pecan/pecan/core.py/PecanBase.__translate_root__