Data Structure Python

from collections import deque
d = deque(["A", "B", "C"])
d.append("D")
print "Handling", d.popleft()