Redis command HMSET is deprecated (its functionality was moved to HSET command) since version 4.0.0 (July 2017) but redis-py still executes this deprecated command in its hmset() function. So the function should probably updated to use HSET without waiting for HMSET command to be entirely removed from Redis API.