class A:

    def bar(self):
        print('one')


class B(A):

    def bar(self):
        print('two')

def test(objs, funcname):
    noop = lambda : None
Passing a "pointer to a virtual function" as argument in Python