Python 3/PyQt4 X keyboard layout switcher