fixed some print statements to work with python3