def collect(dt):
    """Grab Hbase data, write json files, save internal state."""
    log.info(dt % 'Fetching data for %s.')
    extend_counts(get_counts(dt))
    write_files(dt, G['counts'], get_map(dt), get_arc())
    dump_state(dt)
dataset/ETHPy150Open jbalogh/glow/glow.py/collect/swapped operands of `%`