Power Management Script python reference
Main interface functions wrapped with lmi commands are:
list_power_states()
switch_power_state()
All of these accept ns object as the first argument.
It is an instance of lmi.shell.LMINamespace.
Power Management Module API