title: How would you make this Python Dictionary thread-safe?
body: <p>I have a Web Server running in <code>Python</code>. The server is private, so i only expect around 20 users to connect to it. The server is multi-threaded (8 cores at the moment, so 8 threads I guessed).</p>
  
  <p>When requests come in, I am able to identify the users. On some queries, I need to update a simple <code>dictionary</code> of the form  <strong>username -> Boolean</strong>. How could I make this one thread safe ? </p>