managing local view from python

Hi, I know I can enable local view from:
bpy.ops.view3d.localview()

But how do I link objects, to local view, while already being in local view? Adding object from space menu, works, new object is shown in local view.
But when I do somehting like
scene.link(obj)
then this new obj is not visible in local view. Is there a way to force/refresh local view with new objects?

I believe it’s not exposed to Python, you could leave local view however, change selection and go back to local view.

Thanks. That is what I’m doing now, but I thought there may be better way…