Python Thread Class Example In C