This seems really basic although I've never done it, and apparently it's not so straightforward.
What OS are you using, and what exactly are you attempting to print? Simple text?
My guess is that using GUI (qt, wx, tk, etc.) module would support something like that. (Also, IDLE seems to have primitive printing, and it's written in tk, so it's definitely possible.)
Due to the reasons discussed here
we will be moving to python-forum.io
on October 1, 2016.
This forum will be locked down and no one will be able to post/edit/create threads, etc. here from thereafter. Please create an account at the new site to continue discussion.