93,98c93 < python::handle<> class_ptr( < PyRun_String("PythonDerived\n", Py_eval_input, < main_namespace.ptr(), main_namespace.ptr()) ); < < // Wrap the raw Python object in a Boost.Python object < python::object PythonDerived(class_ptr); --- > python::object PythonDerived = main_namespace["PythonDerived"]; 109c104 < Base& py = python::extract(py_base)(); --- > Base& py = python::extract(py_base);