'Extract any hints in a <choicegroup> matching the student\'s answers
<choicegroup label="What is your favorite color?" type="MultipleChoice">
<choice correct="false">Red
<choicehint>No, Blue!</choicehint>
</choice>
Any hint text is installed in the new_cmap.'

def get_extended_hints(self, student_answer_dict, new_cmap):

    if (self.answer_id in student_answer_dict):
        student_answer = student_answer_dict[self.answer_id]
        if isinstance(student_answer, list):
            student_answer = student_answer[0]
        choice = self.xml.find('./choicegroup[@id="{0}"]/choice[@name="{1}"]'.format(self.answer_id, student_answer))
        if (choice is not None):
            hint_node = choice.find('./choicehint')
            new_cmap[self.answer_id]['msg'] += self.make_hint_div(hint_node, (choice.get('correct').upper() == 'TRUE'), [student_answer], self.tags[0])
