try to use PySide, if not available fall back to PyQt
Merge branch 'master' into pyside
PySide fixes
fixes for legacy versions
Merge branch 'master' into pyside