But I vaguely remember that either doctest or 2to3 handles this automatically.  I could be wrong, though.