Fix bug with python plugins and pyside