title: Carriage return in tqdm.write()
body: <p>I am having issues with the usage of a carriage return with tqdm.write()</p>
  
  <p>This code works perfectly, it make an animation of a spinning bar</p>
  
  <pre><code>step = 0
  for x in range (0,50):
      animation = {0: '|',
                   1: '/',
                   2: '-',
                   3: '\\'
                   }[step]
      tqdm.write(animation, end='\r')
      step = (step+1) % 4
      time.sleep(0.1)
  </code></pre>
  
  <p>But if I create progress bar just before : </p>
  
  <pre><code>bar = tqdm(total=100)  # Here
  step = 0
  for x in range (0,50):
      animation = {0: '|',
                   1: '/',
                   2: '-',
                   3: '\\'
                   }[step]
      tqdm.write(animation, end='\r')
      step = (step+1) % 4
      time.sleep(0.1)
  </code></pre>
  
  <p>I have just a display of the progress bar.</p>
  
  <p>Any ideas ?</p>