def get_badge(self, kind):
        ''' Get a badge given its kind if present'''
        candidates = [b for b in self.badges if b.kind == kind]
        return candidates[0] if candidates else None
Get a badge given its kind if present