Fix Python3 issues in SNI test.