May as well just use self.__dict__.update(locals()) and del self.self here