`from __future__ import print_function` to bring the print function from Python 3 into Python 2.6 and 2.7. Properly deals with comma separated values in print() function.
Also ternary if