The mid-function declaration here gives me a compiler error:

./python/objToJSON.c(97) : error C2275: 'PyObject' : illegal use of this type as an expression