Check if ITERATOR

def is_iter(obj):
	return hasattr(obj, '__iter__') and hasattr(obj, '__next__')