wrap initObjToJSON in PY_HEX_VERSION check to return void * under python 3 and void under python 2