class MailRequest(object):

    def __init__(self, from_, to, subject, text, options=None):
        """
        :type options: MailRequestOpts
        """
if options is None:
    options = MailRequestOpts()
self.options = options
Python OOP from a Java programmer's perspective