If you're on Windows, I believe win32api / win32con also can work.
Cool. I don't suppose there is anything cross platform?
I know Autopy is cross platform, and I'm pretty sure PyMouse is too. Not sure about Dogtail.
It isn't used in this case, but Autohotkey is quite a popular scripting/macro language that allows you to simulate mouse and keyboard use programmatically. It's cross platform, and can be run straight through the interpreter or compiled into native executables on many platforms by bundling the interpreter.