def __init__(self, character, data):
        super(Build, self).__init__(data)

        self._character = character

        spec = data.get('spec', {})

        if 'spec' in data:
            self.icon = spec.get('icon')
            self.name = spec.get('name')
        else:
            self.icon = 'inv_misc_questionmark'
            self.name = 'None'

        self.talents = data['talents']
        self.selected = data.get('selected', False)
        self.glyphs = {
            'prime': [],
            'major': [],
            'minor': [],
        }
        self.trees = []
dataset/ETHPy150Open vishnevskiy/battlenet/battlenet/things.py/Build.__init__/original