FORTRAN is used for user defined model development in PSS/E whereas API of Python is used for automation purposes. Activities such as load flow, dynamic analysis, short circuit calculations etc. can also be performed through Python commands designed for PSS/E which are included in the library "psspy".