python: added destructor for networks (= clear())