Added another py3k fix, replace reset() with seek(0)