python2.7 has a __future__ module which contains the print function, allowing print() to be used in that version.