use python Xlib bindings to only show things in history that are still live