#!/usr/local/bin/python2 l = range(9) for i in xrange(100000): for e in l: v = e.get(5) if v is not None: continue