Seems that this is not possible.
So what i did to solve this problem is to iterate over the elements (which i got using .descendants) again and again and then i replaced the nested-elements with a placeholder to make that change visible (using replace_with).
As i used .descendants before, the nested elements are stored anyway.