added support for PyClass, PyInstance, PyMethod and Py_BuildValue