Power System Modelling and Scripting