Py2 compatible version of the importer.