You shouldn't compare identity against booleans (pep-8).
Use:
```python
if msg_wrapper.new:
```