Make external SNI test optional.
Fix Python3 issues in SNI test.