oidutil added exception import for python3 compatibility and linted