Improve integration with PySide