The merge commits created by zuul do not always list all of the files
being modified, so use git diff instead of git show.
Also force python to use unbuffered I/O so the output comes out in a
useful order instead of mixed up with the subprocess commands.
Change-Id: I5e0e4602e463c05e488537192be8ba59c08644dc