code: def prep(self, wait, args, env=None):
          
          self.pattern = wait
          self.env = env
          self.args = args
  
          # wait is a function, supersedes the default behavior
          if callable(wait):
              self.wait = lambda lines: wait()
docs: Given the return value of a preparefunc, prepare this
          CompatStarter.