Use six for Python 3 compatibility (currently in tests, but this will apply to the lib soon enough)