Create restartable_thread.py

using threading.Thread derived classes to create restartable threads in python