title: Python, counter atomic increment
body: <p>How can I translate the following code from Java to Python?</p>
  
  <pre><code>AtomicInteger cont = new AtomicInteger(0);
  
  int value = cont.getAndIncrement();
  </code></pre>