Not sure why but 2to3 suggested to enclose the % expression into parentheses before passing it to print(); I did about the same thing manually but a bit more readable.