Searched on Google for something simple - how to check if an SSL is valid. Found lots of complicated solutions, then finally a simple snippet I was looking for, so modified it and sharing here.
Python - Check if SSL is valid
Repository from Github https://github.comreillychase/Python-check-if-SSL-is-Valid