Background previewer and setter for X implemented in Python