#!/usr/local/bin/python2 from collections import deque for i in xrange(10000): l = range(10) for j in xrange(10): l.pop(0)