added the decoding of the response (for python 3)