Some Python 3 fixes for the import_file utility

Don't use the deprecated 'U' file mode, and use importlib instead of imp to do the importing.