End A Thread Python Examples Pdf