'Main loop for parsing main subjects and their sub sections'

def parse_for_data(self):

    for header in self.soup.find_all('h2'):
        section = self.parse_section(header)
        self.main_sections.append(section)
    for header in self.soup.find_all('h3'):
        section = self.parse_section(header)
        section['example'] = self.clean_unicode_numerals(self.get_example(header))
        section['abstract'] = '<section    class="prog__container"><p>{}</p><pre><code>{}</code></pre></section>'.format(section['paragraph'], section['example'])
        self.sub_sections.append(section)
    self.parsed_data = (self.main_sections + self.sub_sections)
