Suggestion:  Instead of re-dumping the same xml, you could just pass in ``vmxml_backup.copy()``.