made print statements compliant with Python 3.x