Quiz on Python Thread Deadlock