Python 3.x should be supported. Conversion of existing code is simple using the python application 2to3, however Xlib is not available for Python3 as of 2012/03/13.