Regain control of your console! Simply:
from __past__ import printf
where __past__.py
contains:
import sys
def printf(fmt, *varargs):
sys.stdout.write(fmt % varargs)
then:
>>> printf("Hello, world!\n")
Hello, world!
>>> printf("%d %d %d\n", 0, 1, 42)
0 1 42
>>> printf('a'); printf('b'); printf('c'); printf('\n')
abc
>>>
Bonus extra: If you don't like print >> f, ...
, you can extending this caper to fprintf(f, ...).