Interactive Tutorials

Would it be feasible for someone to make a Python script that would allow for the creation of interactive tutorials?

For the person following an interactive tutorial, it would be like: a pop-up appears explaining a concept/action, there would be some kind of visible cue to help a person locate what it is talking about (such as an arrow pointing to a menu item or an input field glowing or a wire-frame), they would then perform said action (the action being a ghost of a recording the creator made for playback). Then once that action is done it moves on to the next task, with new text and visual cues; this process continues until the tutorial’s completion.

Yeah, sure, why not?