PyRun_SimpleString(
    """class Person:
    def sayHi(self):
        print 'hello from python'
    def greetReset(self, instance):
        instance.set('Python')
"""
    )
Boost-python How to pass a c++ class instance to a python class