Expect-like module to drive interactive programs