def __init__(self, lib, rows, cols, cmd, args, cwd=None, env=None): super(ExpectProcess, self).__init__() self.vterm = VTerm(lib, rows, cols) self.lock = threading.Lock() self.rows = rows self.cols = cols self.cmd = cmd self.args = args self.cwd = cwd self.env = env self.buffer = [] self.child_lock = threading.Lock()