This reverts commit 54f51da944. This breaks in the PyQt6 upgrade. There are no globals anymore, only page profiles - but the code should probably be modifying a specific webview instead of globals anyway.
54f51da944
Python's Qt GUI is in aqt/