more porting related to pythonTestDirML