more changes related to porting pythonTestDirML