Use a PTY so hadoop lines are returned immediately

I was annoyed that running -r hadoop jobs didn't output anything to the console until they were done / mostly done. There was a TODO in hadoop.py that suggested that a PTY would allow the lines from the Hadoop sub process to be returned immediately, so I tried that and it worked.

The code in this pull request implements that PTY and correctly outputs all lines from hadoop immediately as they are written.