I think this would be more idiomatic:
```python
if output.succeeded:
```