Updated to support Python 3.3

A few changes to accommodate Python 3.3.  Notably, from urllib import
parse; and the response body needs to be decoded before it's passed to
json.loads().