Python library for controlling power-switches