Add diagnostic messages to python tests and remove java specific code in swig interface file for python