converting to python3 (mainly just print statements)