What is the correct way to test if Qt4/PySide is available?