I want to call an external program from within python, but this external program tries to interact with the user by using an internal script (in the telemarketer sense) to ask questions and change questions based on answers given. The creators of this program are also known for occasionally changing the text of some of these questions, or even worse, the order in which they are asked.
I'm thinking it wouldn't be too hard to write a python module that maps arguments to the wrapper as answers to questions asked by the external program. I could then use difflib, for example, to do some fuzzy matching to try to make the mapping more robust in the event of an order or text change in the external program.
Before doing so I thought I would ask if something like this already exists, as I seem to have a tickling sensation of having seen something similar before, but can't recall the specifics.
Thanks!