Binary package “python-xlib” in ubuntu precise
Interface for Python to the X11 Protocol
python-xlib is a 100% pure Python implementation of the X11
protocol. It currently implements client-side X11R6 fully, supports
the resource database, ICCM, and the Shape extension.