Made print statements compatible for both python 2 & 3