def __init__(self):

    self.db = OracleDb()
    self.btc = BitcoinClient()
    self.kv = KeyValue(self.db)

    self.task_queue = TaskQueue(self.db)

    self.handlers = op_handlers
    self.signer = TransactionSigner(self)

    last_received = self.kv.get_by_section_key('fastcast', 'last_epoch')
    if not last_received:
      self.kv.store('fastcast', 'last_epoch', {'last':0})

    if not self.kv.exists('fastcast', 'address'):
      pub, priv = generateKey()
      self.kv.store('fastcast', 'address', {"pub": pub, "priv": priv})

    logging.info(self.kv.get_by_section_key('fastcast', 'address')['pub'] % 'fastcast pubkey: %r')
dataset/ETHPy150Open orisi/orisi/src/oracle/oracle.py/Oracle.__init__/swapped operands of `%`