How to make constraint permanent once disabled?
Disable and Keep Transform

Hit the X to the right of influence slider. It "applies" the constraint and sets influence to 0 

Script Equivalent, copy the transform, ie the world matrix, set the constraint influence to zero (disable) and reset the matrix world.

import bpy

ob = bpy.context.object
constraint = ob.constraints.get("Copy Location")
if constraint:
    mw = ob.matrix_world.copy()
    constraint.influence = 0
    ob.matrix_world = mw