The possibilities of monkey are fairly limited and the lack of flow control restricts its use to very simple cases.
To circumvent these limitations a new project was created, named monkeyrunner (http://developer.android.com/guide/developing/tools/monkeyrunner_concepts.html). Notwithstanding that the name is almost the same and leads to not a small amount of confusion, they are not related in any way.
Monkeyrunner, which is already included in the latest versions of the Android SDK, is in its initial stages and nowadays its use is quite limited but its future could be bright. It is a tool providing an API for writing scripts that externally control an Android device or emulator.
Monkeyrunner is built on top of Jython ...