[opwig +python] fixed cyclic dependency memory leaks in two classes that contained a parent reference - part of #23.