import redis def get_redis(config): return redis.StrictRedis( host=config['redis']['hostname'], port=config['redis']['port'])