Modified wot.codec to use io module instead of StringIO.