xlib
XLib in pure Python (Py2/Py3 compatible)
Linux python client for Xserver to access windows information and automate keypresses
a keyboard-driven window switcher for x11