Disable output buffering in python scripts

Buffering causes output from system commands to be displayed out of
sequence with messages printed directly from the script, which makes the
script's output difficult to understand.