change to python 3 syntax in pagelayout.py

print command was in python2 syntax, so you get an error running it on python3.
Changed lines 22 and 54.