def make_iter(obj):
 return (((not hasattr(obj, '__iter__')) and [obj]) or obj)

def make_iter ( obj ) : return ( ( ( not hasattr ( obj , '__iter__' ) ) and [ obj ] ) or obj )
makes sure that the object is always iterable .