This can change to 
```python
config['database_hostname'] = config.get('database_hostname') or 'localhost'
```