Made print statement compatible with python 3