check if deque is empty python