Support Python 3.
Decode token from binary response content.
Merge remote-tracking branch 'upstream/master' into py3