import ssl to support catching SSLError exception