Turns out the SSL is caused by not assigning the correct path to the python3.13.
When I use "/usr/local/bin/python3.13" directly instead of using python3.13, the SSL works. I assume that the wrong path was assigned to "python3.13" command on installation process.
I later modified the .bashrc file to include the path, which solved the problem.