Errr, I meant that network has been effected after default_xml['active'] was set to False.
So default_xml.defined will be not necessary. is it?
I added del 'default_xml' here to ensure temporary file has been cleaned up.
But it seems that NetworkXML has done it after its instance closes.