import six


def bool_(val):
    """Like `bool`, but the string 'False' evaluates to `False`."""
    if isinstance(val, six.string_types) and val.lower() == 'false':
        return False
    return bool(val)