Keep group name after ungrouping

how should I paste python files hier in Dynamobim?

See this post:

I think this workflow in its current state does not ensure that the right name goes to the right group…