title: Python pygame odd sequence
body: <p>On my current Python script I have it counting down from 3 to 1, then taking a picture as you can intepret from this code below, doing this 4 times. However, it seems to sneak in 1 picture before counting down, and leaving the last one out, so the last countdown doesn't seem to matter.</p>
  
  <p>Can anyone tell me why this is?</p>
  
  <pre><code>def start_photobooth():
      import config
      now = time.strftime("%d-%m-%Y-%H:%M:%S")
      try:
          for i, filename in enumerate(camera.capture_continuous(config.images_path + now + '-' + '{counter:02d}.jpg')):
              print "[" + current_time() + "] [PHOTO] Producing " + filename
              surface.fill((0,0,0,0))
              surface.set_alpha(288)
              textSurfaceObj = fontObj.render('', True, red)
              surface.blit(textSurfaceObj, textRectObj)
              pygame.display.update()
              time.sleep(float(config.countdown)) 
              for y in range(3,0,-1):
                  surface.fill((0,0,0,0))
                  surface.set_alpha(288)
                  textSurfaceObj = fontObj.render(str(y), True, red)
                  surface.blit(textSurfaceObj, textRectObj)
                  pygame.display.update()
                  pygame.time.wait(1000)
              if i == total_pics-1:           
                  break
  </code></pre>