refactor to be closer to pyredis, replace slower function with faster ones. No more warnings