You'll probably want to use [to_dict()](https://github.com/pyfarm/pyfarm-models/blob/master/pyfarm/models/core/mixins.py#L105) otherwise you'll have to do a second lookup to /hosts/<id> to get the full information for each host.  When I tested it with several thousand hosts in the database it was typically faster to just return all data for each host.

```python
out.append(agent.to_dict())
```