class MailRequest(object):

    def __init__(self, from_, to, subject, text, bcc=None, cc=None):
        if bcc is None:
            bcc = []
if cc is None:
    cc = []
self.from_ = from_
self.to = to
self.subject = subject
self.text = text
self.bcc = bcc
self.cc = cc
Python OOP from a Java programmer's perspective