convert from PySide to PyQt4