fyi, for try in xrange(3) also would work here