def set_options(self, **kwargs):
    options = ''
    for (key, value) in iteritems(kwargs):
        options += '{0}={1}\n'.format(key, value)
        self.__dict__.update({key: value})
    self.options = options
def set_options(self, **kwargs):
    options = 
    for (key, value) in iteritems(kwargs):
        options += '{0}={1}\n'.format(key, value)
        self.__dict__.update({key: value})
    self.options = options