Prepare for PySide compatibility