def update(pi, pi_id):
    if (pi_id in fetches):
        pi.update_kl(fetches[pi_id]['kl'])
    else:
        logger.debug('No data for {}, not updating kl'.format(pi_id))
def update(pi, pi_id):
    if (pi_id in fetches):
        pi.update_kl(fetches[pi_id]['kl'])
    else:
        logger.debug('No data for {}, not updating kl'.format(pi_id))