I tried exporting this way and got the following error message:
Traceback (most recent call last):
File "merge.py", line 69, in <module>
mesh.Export ("newmesh.gmesh")
TypeError: Export(): incompatible function arguments. The following argument types are supported:
1. (self: netgen.libngpy._meshing.Mesh, filename: str, format: str) -> None
Invoked with: <netgen.libngpy._meshing.Mesh object at 0x10dc2c8b0>, 'newmesh.gmesh'
Maybe it's a syntax issue, but I could not discover where the Export() command is explained.