Deque Implementation In Python Using Arrays