fixes for PyQt4/PySide