#Python circular buffer. Python 2.7. Run it, type "push" and "pull" at the command line. Watch the magic.