Python3 and PyQt4 4.6+ compatibility