We shouldn't need to do this, as `output` is already a multi-line string.

Instead of assigning `output.split("\n")` to `output`, it should be much clearer to just do:

```python
for line in output.splitlines():
    # ...
```