code: def isiterable(item):
      
      if isinstance(item, collections.Iterable):
          if not isinstance(item,(str,unicode))  :return True
          else : return False
      else : False
docs: Check if item is iterable ans is not a string (or unicode)