Is it possible to override tab space width when printing \t character in python?
\t
Try pydoc string.expandtabs , I think it will do what you want.
pydoc string.expandtabs
The Python print function does not convert tabs to spaces - displays a literal tab. The way it is displayed depends on which program you use to view it.
print