def _tuplify(obj):
 if (np.iterable(obj) and (not isinstance(obj, string_types))):
  res = tuple((str(o) for o in obj))
 else:
  res = (str(obj),)
 return res

def _tuplify ( obj ) : if ( np . iterable ( obj ) and ( not isinstance ( obj , string_types ) ) ) : res = tuple ( ( str ( o ) for o in obj ) ) else : res = ( str ( obj ) , ) return res
convert an object in a tuple of strings .