Python bytes/unicode fixes in response/exceptions