It seems that there are a few options out there. Dogtail looks the most promising, although it does seem to be only gnome at the moment. I prefer python to perl myself.
Generally the maturity of this sort of software looks to be less than I could hope. Thanks for the help on this one. Dale Ogilvie
