Example in question: https://redis-py.readthedocs.io/en/stable/examples/connection_examples.html#By-default-this-library-uses-the-RESP-2-protocol.-To-enable-RESP3,-set-protocol=3.