class mail:
    def __init__(self, prot, *argv):
        self.prot = prot(*argv)

    def login(self, account, passwd):
        self.prot.login(account, passwd)

    def send(self, frm, to, subject, content):
        self.prot.sendmail(frm, to, subject, content)

    def quit(self):
        self.prot.quit()

class mail:
    def __init__(self, prot, *argv):
        self.prot = prot(*argv)

    def login(self, account, passwd):
        self.prot.login(account, passwd)

    def send(self, frm, to, subject, content):
        self.prot.send(frm, to, subject, content)

    def quit(self):
        self.prot.quit()

fix mismatch interface and API