change print statements to make it py3 compatible