When the QtCore module is imported for the first time it installs a
Python input hook (ie. it sets the value of Python’s PyOS_InputHook
variable). This allows commands to be entered at the interpreter
prompt while the application is running. It is then possible to
dynamically create new Qt objects and call the methods of any existing
Qt object.
The input hook can cause problems for certain types of application,
particularly those that provide a similar facility through different
means. This function removes the input hook installed by PyQt.
The input hook can be restored using the pyqtRestoreInputHook()
function.