def __find_last_kper(self, kper):
    kpers = list(self.data.keys())
    kpers.sort()
    last = 0
    for kkper in kpers[::(- 1)]:
        if ((self.vtype[kkper] != int) or (self.data[kkper] != (- 1))):
            last = kkper
            if (kkper <= kper):
                break
    return kkper
def __find_last_kper(self, kper):
    kpers = list(self.data.keys())
    kpers.sort()
    last = 0
    for kkper in kpers[::(- 1)]:
        if ((self.vtype[kkper] != int) or (self.data[kkper] != (- 1))):
            last = kkper
            if (kkper <= kper):
                break
    return kkper