pyexpect: force readline return only line ending with LN; add class name into debug messages; add Terminal.flush method