``` S := PyObject_Str( obj ); if Assigned(S) and PyUnicode_Check(S) then W := PyUnicodeAsString(S); Result := string(W); Py_XDECREF(S); end; ```