How to enable this checkbox in script?

How to make this checkbox in script?

 (Command panel of splineshape)