specify borehole water condition using python

Hi . Hopefully an easy question, but i cant find the answer anywhere myself.

I am creating a model using python.

I want to amend the water condition for some of the soil layers in the borehole to Hydrostatic or Interpolate, but i cant quite get the right line of code for this command.

Thus what are the lines of code i need to change the condition as well as set the p_top and p_bottom?

Thanks in advance