def index_tokens(pipe, tokens, key, **kwargs):
    for (token, boost) in tokens.items():
        pipe.zadd(keys.token_key(token), mapping={key: boost})
def index_tokens(pipe, tokens, key, **kwargs):
    for (token, boost) in tokens.items():
        pipe.zadd(keys.token_key(token), mapping={key: boost})