import six


def FuzzyBool(value):
  """Returns value as a boolean with special handling for false-like strings."""
  if (isinstance(value, six.string_types) and
      value.strip().lower() in ('false', 'no', '0')):
    return False
  return bool(value)