Changed xrange to range in Wrangler.
Improved IOManager._read_from_pipe().