Dynamic time-domain module for PYPOWER