py_xdotool is a Python wrapper for the xdotool utility:
http://www.semicomplete.com/projects/xdotool/
Requires: xdotool, python-imaging, python-xlib
Only a very small subset of the functions are supported. Feel free to add any others!