Three Snippets of Random Info

import os
xpid = os.spawnlp(os.P_NOWAIT, "Xvfb", "Xvfb", ":10 -screen scrn 1024x768x16")
os.environ["DISPLAY"] = ":10"

import gtk
...