'Add roles to user'

def append_roles(self, *roles):

    current_roles = [d.role for d in self.get(u'roles')]
    for role in roles:
        if (role in current_roles):
            continue
        self.append(u'roles', {u'role': role})
