Any reason this line couldn't be 

```python
for key, value in settings_dict.items():
``` 

or, if an iterator is required, use 

```python
for key, value in settings_dict.iteritems():
```