'Initialize name attributes in <choice> stanzas in the <choicegroup> in this response.
Masks the choice names if applicable.'

def mc_setup_response(self):

    i = 0
    for response in self.xml.xpath('choicegroup'):
        rtype = response.get('type')
        if (rtype not in ['MultipleChoice']):
            response.set('type', 'MultipleChoice')
        for choice in list(response):
            if (choice.get('name') is not None):
                name = ('choice_' + choice.get('name'))
            else:
                name = ('choice_' + str(i))
                i += 1
            choice.set('name', name)
