Scripting AoEII maps with a decent scripting language has long been a dream of mine. Current trigger editor is "hard to use and lacking" to put it politely. Python support in the map editor would be amazing.
Isn't the current AI scripting done in Lisp?
It's extremely limited, at least if you expect it to be a complete programming language. On the other hand, it's very easy to learn and use, which is what it's designed for.
The random map scripting is a programming language I believe. You can create scripts that generate maps.
I went and had a look for the AI I had seen before, here's it on gist if anyone would like to read it (it's 28,000 lines).