WIP: added garbage collector work around a possible bug in multitreaded pyqt applications. TODO: test it