title: Creating a buffer in python to store data before sending it out
body: <p>I receive an mp3 stream in client1 and then I send it out again to client2 in real time.<br>
  I want to create a buffer which would store some data and it would only send it out to client2 when it fills completely. This would help me to avoid deadlocks. </p>
  
  <p>I am not sure how to create such a buffer in python. What data structure can I use and how can I implement it? Any hints?</p>