def METHOD_NAME(self, start_range, stop_range):
    for x in range(start_range, stop_range, -1):
        GrpId = "%04x" % x
        if GrpId not in self.ListOfGroups:
            return GrpId
    return None