tests: Python3 fix for SSL connection test