def ParseSymbol(self, regex):
    Properties_Pointers = ['Section', 'Class', 'Subclass', 'Group', 'Subgroup']
Pattern_groups = re.search(regex, self.Symbol)
i = 0
for group in Pattern_groups.groups():
    setattr(self, Properties_Pointers[i], group)
i += 1
How to dynamically assign values to class properties in Python?