Stringifying data in order to maintain compatibility with Python 3.x in tests.