I looked at your model, and as I suspected, the hole is not a subgroup. It is primitive geometry.
To relocate primitive geometry, you need to use the Entities.transform_entities
method.
As for your code, I’m sorry but I do not read Italian so it is too difficult to even try to figure out where the error is.