<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parsebool(el):
 """ Parse a ``BeautifulSoup`` element as a bool """

    txt = text(el)
    up = txt.upper()
    if up == "OUI":
        return True
    if up == "NON":
        return False

    return bool(parseint(el))