OPI Extractor script in Py3