Python debug tricks