Fixed Python 2 backwards-compatibility with print statements