Fix Python 3 compatibility issues.

Tests did not properly decode devpi-client output.