Switched to cStringIO, removed redundant event