Use a PTY so hadoop lines are returned immediately (replaces #580)

This reworks pull request #580 so that `mrjob` will still work if you don't have a working `pty` module.