Python-3 fixes for core + trigger packags
Fixes some (but not all) the problems when trying to run athena under python 3.
Should fix unit tests running athena, which all fail instantly with
Traceback (most recent call last):
File "/build/atnight/localbuilds/nightlies/master--py3/build/build/Athena/x86_64-centos7-gcc8-opt/bin/athena.py", line 96, in
ldpreload = string.replace( ldpreload, tcmlib, '' )
After that, I fixed a selection of issues observed when trying to run test_trigUpgr_full_menu_build.sh, before giving up (lots of trivial fixes, e.g. to print statements).