Gui segfaults repetably (randomly in how far it progressed) when progressbar is updated from a python thread, use Qt event loop instead