Modified print statements to be compatible with Python 2.7