PySide c++ object destroyed test