python trick