def foo(self, *args, **kwargs):
    """ a docstr """
result = bar(*args, **kwargs)
result = result ** 2
return result
How can I programmatically change the argspec of a function *not* in a python decorator?