I think PyObject_Unicode should be good for both Python 2 and 3.