added pyqt4 support