Cross platform gui automation for python
===

I need a way to do things like move the mouse, click a button in a window, or select a window by its title and bring it to the top. It needs to work with python, and it needs to work on any window, X, or Mac os x. I know of autohotkey(+dll) for windows, but is there something like I describe that is cross platform?