Ensure compatibility with JSON library on Python < 2.7

JSON module has no load() method. This patch reads the whole response body and passes it to the read() method only if load() is not found.

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>