[python] Added PythonInterpreter::setImportException.
[python] Added Qt import hook check.