I think the key diagnostic is the output of this command:
python -c 'import ssl; ssl.PROTOCOL_TLSv1_2'
good: no output but
echo $?
shows return code 0
trouble:
Traceback...(etc.)
My post (#7 in thread linked above) turned out to not necessarily have the solution.