Implementation of a deque using an array in Python 3
It's not clear at all to me what the mid pointer represents.  It doesn't seem like it stays in the middle of the array.
Why not use collections.deque?  https://docs.python.org/2/library/collections.html#collections.deque
Implementing an efficient deque is much easier with a linked list than with an array IMO.