more python3 porting related to the execution of pythonTestDirChem