Blender 2.8 API - grid_scale?
In v2.81 I am changing it like this:

import bpy

for area in bpy.context.screen.areas:
    if area.type == 'VIEW_3D':
        area.spaces.active.overlay.grid_scale = 0.25