I would do:
```
if self.config['fakedata']:
        self.generate_fakedata(db2, self.config['fakedata_days'])
```