def finditem(func, seq):
    return next((item for item in seq if func(item)))


# http://stackoverflow.com/questions/749796/pretty-printing-xml-in-python
# http://effbot.org/zone/element-lib.htm#prettyprint
Finds and returns first item in iterable for which func(item) is True.
dataset/ETHPy150Open burnash/gspread/gspread/utils.py/finditem