bugfix: python3 incompatible print statements in the code and loosened accuracy for some tests that sporadically fail