def processNewBan(self, newIpToUnbanTimeMap, currTime):
    for ip in newIpToUnbanTimeMap:
        if (ip not in self.ipToUnbanTimeMap):
            print('{0},BAN,{1}'.format(int(currTime.timestamp()), ip))
            self.ipToUnbanTimeMap[ip] = newIpToUnbanTimeMap[ip]
        else:
            self.ipToUnbanTimeMap[ip] = max(self.ipToUnbanTimeMap[ip], newIpToUnbanTimeMap[ip])
def processNewBan(self, newIpToUnbanTimeMap, currTime):
    for ip in newIpToUnbanTimeMap:
        if (ip not in self.ipToUnbanTimeMap):
            print('{0},BAN,{1}'.format(int(currTime.timestamp()), ip))
            self.ipToUnbanTimeMap[ip] = newIpToUnbanTimeMap[ip]
        else:
            self.ipToUnbanTimeMap[ip] = max(self.ipToUnbanTimeMap[ip], newIpToUnbanTimeMap[ip])