PowerFactory-Python based assessment of frequency and transient stability in power systems dominated by power electronic interfaced generation