'Sets source object for this instance.'

def set_source(self, source):

    if (self.__dict__['__source'] != None):
        raise ValueError('source    object    is    already    set')
    self.__dict__['__source'] = source
