missing terminating ':'?

    if stat == 'cache_hit_ratio':