python3 compatibility fixes
python3 compatibility fixes related to pythonTestDirChem
more python3 porting of pythonTestDirChem tests