Python (PyQt4) tool to switch between keyboard layouts