More debugging information for the client
Use io instead of StringIO and throttle http tests
Use python 3 friendly encoding techniques