Looking at this, you can even just return:

```python
return redis.Redis(connection_pool=pool)
```

One less variable. :)