From Collections Import Deque Python Methods