Would be nice, but probably impractical to implement.
The first hurdle to get through is KM's javascript check. Meaning whatever automation tool you write, it has to support javascript. I don't know any that does, unless you use Selenium. I did however find a python module to bypass the check...