[sent this to a github issue discussion by mistake]
Note: just posting thing for general qt4/5 import reference, I think
the WebKit related issues may be more about deprecation than imports.
Just found this:
https://github.com/spyder-ide/qtpy
QtPy: Abtraction layer for PySide/PyQt4/PyQt5
QtPy (pronounced 'cutie pie') is a small abstraction layer that lets
you write applications using a single API call to either PyQt or
PySide.
It provides support for PyQt5, PyQt4 and PySide using the PyQt5 layout
(where the QtGui module has been split into QtGui and QtWidgets).
Basically, you write your code as if you were using PyQt5 but import
Qt modules from qtpy instead of PyQt5.
Cheers -Terry