Brep-Brep intersection

Hello,
I am currently working on a project that consists of a series of spheres that are attached where they have a bubble form.
The problem is that’s these spheres all in one list and I can’t solve intersections between them where all I need is the bubble form without inner intersections.
Any suggestion or help?

Please attach your rhino file and script and state your problem more clearly.