How To Implement Deque In Python