Complete (?) port to Python 3, incl. a rewrite of the import_csv()
function.