Py3 compatibility with six