'Resolve the entry point from its module and attrs.'

def resolve(self):

    module = __import__(self.module_name, fromlist=['__name__'], level=0)
    try:
        return functools.reduce(getattr, self.attrs, module)
    except AttributeError as exc:
        raise ImportError(str(exc))
