Support PyQT5 in patching qt.