There are a lot of moving parts here, but the first thing that comes to mind is that the optommp Python library was originally written for and tested with Python 2.7 – you’ll need to make some changes to have it work with 3.7.
I’ve already tested a modification that will hopefully help in your situation as well: Optommp error :No module named 'O22SIOUT'
If you haven’t already tried that, please give it a go and let us know if that gets past the 3.7 command being unable to find optommp, and we can go from there.
Also, is there a specific reason you’re using python3.7? I’m just curious which packages your script relies on besides optommp.