title: Cycling a binary file in Python - Remove from beginning add to end
body: <p>Could anyone point me towards a method of cycling a binary file in Python? I have a file full of 4 byte integers basically and when the file reaches a certain size, i.e. a certain number of values have been written, I want to start removing one from the start and adding one at the end.</p>
  
  <p>I'm still reasonably new to Python, so just trying to think of a neat way of doing this.</p>
  
  <p>Thanks.</p>