title: cmd console game; reduction of blinking
body: <p>I'm writing an arcanoid game in python on windows console and what bothers me is annoying blinking after every iteration of "displaying" loop. Does anyone have any idea how to reduce it? This is part of the code: </p>
  
  <pre><code>#-*- coding: UTF-8 -*-
  import time
  import os
  
  clear = lambda: os.system('cls')
  def gra():
      koniec='0'
      while koniec!='1':
          for i in range(4):
              for j in range(10):
                  print '[___]',
              print '\n',
          for i in range(10):
              print '\n'
          for i in range(10):
              print ' ',
          print '~~~~~~~~~~'
          time.sleep(0.1)
          clear()
  gra()
  </code></pre>