fixed python 2 support with pyqt4