Use python-Xlib to get screen resolution, instead of spawning xdpyinfo