There is no way to call PDI_Finalize in Python API, which is required by some plugins (e.g. FTI plugin).