Remove unused import, fix Py3 compat.