Fix printing for python.