In this case it doesn't need to be imported from six I don't think, as 'sorted' in the line below does the conversion to list for both Py2/3