Codeintel2: Python3 compatibility: tempfile is a binary file. Sort doesn't have cmp