pyqt5, Threading example