fixed some unittest and resource warnings in pythonTestDirML