adjust print function for python3 usage