code: def bool_from(obj, default=False):
      
      return str(obj).lower() not in ('0', 'false') if obj is not None else bool(default)
docs: Returns True if obj is not None and its string representation is not 0 or False (case-insensitive). If obj is
      None, 'default' is used.