Removing some spurious print statements and fixing test case for python 2.6