You should do: 
```python
host = instance.get('server', '127.0.0.1')
port = instance.get('port', 4730)
```