Pwnc: Computer aided power systems