'Iterate through the data and create the needed output.txt file, appending to file as necessary.'

def create_file(self):

    with open('output.txt', 'a') as output_file:
        for data_element in self.data:
            if data_element.get('name'):
                description = (('<section    class="prog__container">' + data_element.get('description')) + '</section>')
                url = data_element.get('url').encode('utf-8')
                name = data_element.get('name').encode('utf-8')
                redirect = data_element.get('redirects')
                list_of_data = [name, 'A', '', '', '', '', '', '', '', '', '', description, url]
                line = ' DCTB '.join(list_of_data)
                output_file.write((line + '\n'))
