class Spam(example.Base):
    pass
Spam().foo()


class Egg(example.Base):

    def foo(self):
        return 100
e = Egg()
e.foo()
d = example.get_base()
d.foo()
Exposing C++ interface in boost python