title: Squeezing characters with python
body: <p>How would I do this with python : </p>
  
  <p>if  I have a string formatted like : </p>
  
  <pre><code>A..a.b.c
  </code></pre>
  
  <p>To make it like : </p>
  
  <pre><code>A.a.b.c
  </code></pre>
  
  <p>But I do not know beforehand how many dots I have ? </p>
  
  <p>It's like the tr -s function in linux</p>