title: Python : printing in multiple threads
body: <p>I have an implementation of a network system based on Twisted. I noticed that when I run a function (which do some mathematical operations and prints the result) in a new thread, not in the main one, the <code>print</code> function causes <code>Segmentation fault</code>. Is it possible? Is there an option to avoid that? </p>