code: def _is_iterable(val):
      
      try:
          iter(val)
      except (ValueError, TypeError):
          return False
      else:
          return not isinstance(val, basestring)
docs: Ensure that a value is iterable and not some sort of string