ice: make python bindings optional.

Closes #29054.