This is maybe better:
```python
[setattr(self, a, v) for a, v in locals().iteritems() if a != "self"]
```