Fixing a TypeError in the Travis CI build

The json module was not being imported in exceptions.py causing a
TypeError whenever `json.dumps` was called later in the
JSONHTTPException class.