masher: Make all !0 subprocess returncodes fatal
masher: Only log stdout if there is any
tests: Ensure non-zero subprocess returncodes raise exceptions
masher: PEP8 and docstrings