Changes: - Fixed OSError exception when a pexpect object is cleaned up. - Added support for buffering reads.