It has something to do with bytes and encodings. I haven't touched this in a long time and when I worked with this i had little python skill therefore I don't really remember/understand. The problem was based on the responses being raw data.
Also, If I remember correctly, when I printed the responses from minecraft.net they had that in front of them.