def tupleize(func):
 def wrapper(*args, **kargs):
  return (func(*args, **kargs),)
 return wrapper

def tupleize ( func ) : def wrapper ( * args , ** kargs ) : return ( func ( * args , ** kargs ) , ) return wrapper
a decorator that tuple-ize the result of a function .