Pythonic way to assign the parameter into attribute?,"setattr(self, k, v)"