Update renderers.py

Changed StringIO to io for Python 3 compatibility. Will work on Python 2 and 3 compatibility later.