title: What is the most efficient way to push and pop a list in Python?
body: <p>In Python how do I write code which shifts off the last element of a list and adds a new one to the beginning - to run as fast as possible at execution?</p>
  
  <p>There are good solutions involving the use of append, rotate etc but not all may translate to fast execution.</p>