Automerge Treshold

Uncomment this line for the treshold:
bpy.context.tool_settings.double_threshold = 0.025