Python threads: communication and stopping
I learn new things about Python every day.
The "politely ask it to stop" paradigm is not a solution. For it to work, your thread cannot perform any blocking calls, nor can it call out to any long running functions that are not specifically designed to check a stop flag frequently.