shortcut for making an XML element text getter

def textgetter(path: str, *,
               default: T=NO_DEFAULT,
               strip: bool=False) -> t.Callable[[Element], t.Union[str, T]]:
    """shortcut for making an XML element text getter"""
    find = compose(
        str.strip if strip else identity,
        partial(_raise_if_none, exc=LookupError(path)),
        methodcaller('findtext', path)
    )
    return (find if default is NO_DEFAULT else lookup_defaults(find, default))