Personally, I find it easier to read multiple .filter statements than grouped ".ands", also easier to add/remove:

```python
wards = session.query(Ward)\
  .filter(Ward.code.in_(ward_codes))\
  .filter(Ward.year == year)
```