This was because `out.communicate()` or `out.wait()` was missing.