Convert to Python3 compatible, and convert from PyQt4 to PyQt5.