This needs to be:
```python
with open(config_filename, 'r') as f:
    config = json.load(f)

or

f =  open(config_filename, 'r')
try:
    config = json.load(f)
finally:
    f.close()
```

To prevent leaking the filedes if the json.load() raises an exception.