For example see this answer: Python - How can I implement a 'stoppable' thread?
for stoppable threads using the standard threading module.
Is there an