#!/usr/local/bin/python2 from collections import deque for i in xrange(1000): l = deque(range(50)) for j in xrange(50): l.popleft()