Adjusted print statements to be more compatible with python3