How can I reduce the radius of this distance calculation?
You can set the variables that scale the radius by hand. Currently the script uses:

maxDist = max( vert_distances )
minDist = min( vert_distances )


But you can use any other value and experiment with what works for your case, like:

maxDist = 5
minDist = 1