A simple fast partial StringIO replacement in Python 2
This module provides a simple useful replacement for the StringIO module that is written in C. It does not provide the full generality of StringIO, but it provides enough for most applications and is especially useful in conjunction with the pickle module.
https://docs.python.org/2/library/stringio.html#module-cStringIO
Note that cStringIO was removed from Python 3 (ref: here).