Myhdl: how to set pin to 'high impedance'

I have a controller in a tinyfpga and during power up my pwm output pins are ‘high impedance’.

Now when a Fault condition occurs i want to set these pins back to ‘high impedance’ which can then be pulled up or down depending on the hardware used (straight or inverted drivers).

How can this be done?