answered 2017-05-23 01:43:33 -0500
Replace variabel s with the generator id, e.g. '1'. You have also written i instead of _i for the first integer. The correct line is shown below:
ierr = psspy.machine_chng_2(81000, '1', [_i, _i, _i, _i, _i, 1], [P,])