You should just use `subprocess.PIPE`, that will block the I/O