Fix test_log on Python 3, StringIO module is no longer available
Get rid of backwardcompat.fwrite() as it doesn't do what it seems to...
Python 2.7 io.StringIO is text-only, use backwardcompat
Merge pull request #1224 from pfmoore/stringio

Fix test_log on Python 3, StringIO module is no longer available