changed print statements to work in py3