This (and subsequent similar lines) fails in Python 3.3. Consider doing the following:

````
json.loads(r.get_data().decode("utf-8"))
````