Pexpect is a Python module for spawning child applications; controlling them; and responding to expected patterns in their output. Pexpect can be used for automating interactive applications such as ssh, ftp, passwd, telnet, etc. Pexpect is pure Python.
Note that Pexpect development has moved to Github: https://github.com/pexpect/pexpect
SSHsprinkler is a tool to distribute the execution of commands or scripts on a set of remote networked systems. It is portable (written in Python), asynchronous, uses the ssh encryption and manages the logs of the batches carried out on target systems.