test: Tox test infrastructure
py3: use six
py3: fix imports
py3: fix for next()
py3: fixes for dictionary access
py3: unicode fixes