class foo(object):

    def bar(self, pos1, **kwargs):
        print('bar got self=%r, pos1=%r, kwargs=%r' % (self, pos1, kwargs))
foo.bar = partial(foo.bar, qux=1)
baz = foo()
baz.bar(1)
Monkey patching with a partial function