Some classes do not inherit form TNamed (#9340)
Some classes do not inherit form TNamed (#9340)

* Some classes like TObjString do not inherit form TNamed

* Use a more pythonic way to check if `obj` inherits from TNamed.
olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root