Bug #787712 threaded python deadlocks