Nitpicky comment, but the more pythonic way of doing this check is:

```
if output.FileExtension is not None
```