print adapted for python3