StringIO dependency removed