Update Python to work under 2 and 3

Imports a `print` function into older Pythons (2.6 & 2.7) to match Python 3.