def init():
    global pool
print('PID %d: initializing redis pool...' % os.getpid())
redis_pool = redis.ConnectionPool(host='10.0.0.1', port=6379, db=0)
How do I properly use connection pools in redis?