Get codes, given codes or groups.

def _get_grps_n_codes(self, usr_set):
        """Get codes, given codes or groups."""
        codes = usr_set.intersection(self.code2nt)
        for grp in usr_set.intersection(self.grp2codes):
            codes.update(self.grp2codes[grp])
        return codes