If you google, you will be asked to reinsert Python. so, There is an option for ssl at the time of installation.
However, since it was a Homebrew environment, I tried to re-insco it as it was and it was fixed.
The following procedure commands
$ brew remove python
$ brew doctor
$ brew install python
$ brew doctor
$ python
>>> import _ssl
Make sure there are no errors >>> exit ()