fixed python json logging to match scala