I had written a program in Python 3, but now want to convert it into Python 2 code. Are there any utilities to do that automatically?
You want 3to2 for that.