class Foo(object):
    bar = 1

def baz(self):
    print('quoz')
inspect.getmembers(Foo, inspect.ismethod)
gdb python programming: how to write code that will set breakpoints to every method of a C++ class?