What is the command in python to apply surface smoothing to 3D object?

What is the command to apply this?
image

Smoothing the 3d mesh. You can drift the bar or change the value from 1 to 0.5, and you could see the effect in the 3d view.