To go with the new release of Qtile, I thought I would put together a demonstration of how Qtile automation works.
You could use the qsh shell or the prompt widget to execute arbitrary qtile commands; but the test suite, and any useful scripts that you might create, use of the libqtile.command.Client() object.
The demonstration uses IPython notebook. Before you can run the notebook you need to have installed IPython and Qtile.
To run the notebook:
At this point you should have a browser open at http://127.0.0.1:8888/ and should be able to navigate to the notebook.