shortcut making an XML element getter

def elemgetter(path: str) -> t.Callable[[Element], Element]:
    """shortcut making an XML element getter"""
    return compose(
        partial(_raise_if_none, exc=LookupError(path)),
        methodcaller('find', path)
    )