Copies the QtGui list of PySide/PyQt4 into QtWidgets

def copy_qtgui_to_modules():
    """Copies the QtGui list of PySide/PyQt4 into QtWidgets"""

    pyside_filepath = PREFIX + '/PySide.json'
    pyqt4_filepath = PREFIX + '/PyQt4.json'
    pyside = read_json(pyside_filepath)
    pyqt4 = read_json(pyqt4_filepath)

    # When Qt4 was moved to Qt5, they split QtGui into QtGui, QtWidgets, and
    # QtPrintSupport.
    pyside['QtWidgets'] = pyside['QtGui']
    pyqt4['QtWidgets'] = pyqt4['QtGui']
    pyside['QtPrintSupport'] = pyside['QtGui']
    pyqt4['QtPrintSupport'] = pyqt4['QtGui']

    write_json(pyside, pyside_filepath)
    print('--> Copied QtGui to QtWidgets and QtPrintSupport for {0}'.format(
        os.path.basename(pyside_filepath)))
    write_json(pyqt4, pyqt4_filepath)
    print('--> Copied QtGui to QtWidgets and QtPrintSupport for {0}'.format(
        os.path.basename(pyqt4_filepath)))