How do I stop a for loop in a thread in Python 2.7 ? Is it possible to stop/continue script while using threading in a for loop ?