title: Forward-compatible print statement in python 2.5
body: <p>OK, maybe I'm just having an off day. This seems like something a lot of people must be asking, but Google is failing me horribly. The closest thing I found was <a href="https://stackoverflow.com/questions/388069/python-graceful-future-feature-future-import">this</a> which doesn't exactly address this issue.</p>
  
  <p>At work I run Arch on my desktop (which is python 3 by default), and Debian Lenny on my company's servers (which is python 2.5). I want to write a single python script that will work in both python 2 and 3. It's a very simple script, not much to it (mostly it just calls off to git using <code>subprocess</code>). Everything already works in both versions of python EXCEPT for the damned <code>print</code> statements.</p>
  
  <p>Everyone out there seems to suggest the <code>from __future__ import print_function</code> trick. However this was introduced in python 2.6, and I'm stuck with 2.5.</p>
  
  <p>So what are my options? How can I call <code>print</code> in both 2.5 and 3 using the same script? I was thinking maybe some kind of wrapper function, but this might not be the most "pythonic" way of doing things. Your thoughts? And no, upgrading the server to 2.6 isn't an option.</p>
  
  <p>Thanks!</p>