def __init__(self, config_location, broker_address, max_scan_items, ttl,
    logresult=False, 
    poll_timeout=300, 
    shutdown_grace_timeout=SHUTDOWN_GRACE_TIMEOUT_DEFAULT):
        '''Main constructor'''
        super(Worker, self).__init__()
        self.config_location = config_location
        self.max_scan_items = max_scan_items
        self.ttl = ttl
        self.shutdown_grace_timeout = shutdown_grace_timeout
        self.keep_running = False

        self.broker_address = broker_address
        self.identity = (randint(0, 0x10000), randint(0, 0x10000)) % "%04X-%04X"
        self.broker = None
        self.broker_poller = zmq.Poller()
        self.poll_timeout = poll_timeout * 1000 # Poller uses milliseconds
        self.logresult = logresult
dataset/ETHPy150Open lmco/laikaboss/laikad.py/Worker.__init__/swapped operands of `%`