'open(host=None, port=None)
Setup secure connection to remote server on "host:port"
(default: localhost:standard IMAP4 SSL port).
This connection will be used by the routines:
read, send, shutdown, socket, ssl.'

def open(self, host=None, port=None):

    self.host = self._choose_nonull_or_dflt('', host)
    self.port = self._choose_nonull_or_dflt(IMAP4_SSL_PORT, port)
    self.sock = self.open_socket()
    self.ssl_wrap_socket()
