set_shape_key_value(obj, key_name, value)

Apply shape key to the object. If the object is supposed to be available for
selecting (for example, via the pick_object
method) call the update_boundings method
after applying a shape key or override object bounding volumes in Blender
beforehand so that the boundings can contain the object in its largest shape.