assign value in `group` dynamically to class property `attr`,"setattr(self, attr, group)"