The process of encoding/decoding the id list doesn't work for me in Python 3. I get errors due to encoding str instead of byte objects and vice versa on the decode side. However, I don't want to try ...