pyqt: Updated formula with Python 3 support