fixed output reset

In python 2 cStringIO module, "reset" does not exist in StringIO for
python3. According to http://bugs.python.org/issue1191420 , reset was
sort of a bug and it had the same function as .seek(0). hopefully this
works...