I have a dll with a function that takes PyObject as argument something like
void MyFunction(PyObject* obj) { PyObject *func, *res, *test; //function
I made the following changes to your code and it worked for me, but I'm not sure it is 100% correct way to do it:
For example:
prototype = c.PYFUNCTYPE( c.c_char_p, c.py_object ) func = prototype(('MyFunction', libTest)) func( MyClass )