Uniting a mesh using Python an Gmsh

Please use 3x` to encapsulate the code, i.e.

```
// Add gmsh code here
```

For your other question, i would suggest you have a look at the Fragments command: Mesh, Submesh , Torus, Boundary - #5 by dokken

I’ve also explained this in: