python 3 c-api: use PyObject_Str instead of PyObject_Repr