code: def listlike(obj):
      
      
      return hasattr(obj, "__iter__") \
      and not issubclass(type(obj), str)\
      and not issubclass(type(obj), unicode)
docs: Is an object iterable like a list (and not a string)?