removing the need for the six module while keeping Py2/3 compatibility