def decorate_methods(obj, decorator):
 return _DecoratedInstance(obj, decorator)

def decorate_methods ( obj , decorator ) : return _DecoratedInstance ( obj , decorator )
return a wrapper around obj with decorator applied to all of its method calls .