title: linux tee is not working with python?
body: <p>I made a python script which communicates with a web server using an infinite loop.
  I want to log every communication data to a file and also monitor them from terminal at same time. so I used tee command like this.</p>
  
  <pre><code>python client.py | tee logfile
  </code></pre>
  
  <p>however, I got nothing from terminal nor logfile.
  the python script is working fine.
  what is happening here?
  am I missing something?</p>
  
  <p>some advice would be appreciated.
  thank you in advance.</p>