extract-ofp-errors: Make Python 3 compatible.