def unbanPassedIPs(self, currTime: datetime):
    toUnban = []
    for ip in self.ipToUnbanTimeMap:
        if self.needsToBeUnbanned(ip, currTime):
            toUnban.append(ip)
    for ip in toUnban:
        print('{0},UNBAN,{1}'.format(int(currTime.timestamp()), ip))
        self.ipToUnbanTimeMap.pop(ip)
def unbanPassedIPs(self, currTime: datetime):
    toUnban = []
    for ip in self.ipToUnbanTimeMap:
        if self.needsToBeUnbanned(ip, currTime):
            toUnban.append(ip)
    for ip in toUnban:
        print('{0},UNBAN,{1}'.format(int(currTime.timestamp()), ip))
        self.ipToUnbanTimeMap.pop(ip)