ModuleNotFoundError: No module named 'merlin.tradelogic'

Sta*_*cey 5 python python-2.7 python-3.x

I am having a problem with executing a script. I have a number of inherited scripts which I need to figure out how to run. Please see some background and the problem below:

The code has been transferred from an old environment (where the whole process runs fine) to a new environment. This is where the problems have started. Please see below for a cut down version of the file tree. It is a very large project so I can't post the entire tree, but hopefully this is the part that I need help with.

The uncompiled code tree:

??? dao
?   ??? cythonlib
?   ?   ??? cyrandom.c
?   ?   ??? cyrandom.cpython-35m-darwin.so
?   ?   ??? cyrandom.pxd
?   ?   ??? cyrandom.pyx
?   ?   ??? __init__.py
?   ?   ??? _random.pxd
?   ?   ??? src
?   ?       ??? _random.c
??? merlin
?   ??? cmdopt.py
?   ??? __init__.py
?   ??? instrument.py
?   ??? mktdata.py
?   ??? overview.py
?   ??? pair.py
?   ??? portfolio.py
?   ??? src
?   ?   ??? MerlinLogic.cpp
?   ?   ??? MerlinLogic.hpp
?   ??? stratconfig.py
?   ??? tradega.cpp
?   ??? tradega.cpython-35m-darwin.so
?   ??? tradega.pxd
?   ??? tradega.pyx
?   ??? tradelogic.cpp
?   ??? tradelogic.cpython-35m-darwin.so
?   ??? tradelogic.pxd
?   ??? tradelogic.pyx
?   ??? tradeopt.py
?   ??? utils.py
?   ??? var.py
?   ??? wrtconfig.py
??? merlin_cprofile.sh
??? merlin.py
Run Code Online (Sandbox Code Playgroud)

The compiled tree:

strat
??? dao
?   ??? cythonlib
?   ?   ??? cyrandom.cpython-35m-x86_64-linux-gnu.so
?   ?   ??? __init__.pyc
??? merlin
?   ??? cmdopt.pyc
?   ??? __init__.pyc
?   ??? tradega.cpython-35m-x86_64-linux-gnu.so
?   ??? tradelogic.cpython-35m-x86_64-linux-gnu.so
?   ??? tradeopt.pyc
?   ??? utils.pyc
?   ??? var.pyc
?   ??? wrtconfig.pyc
??? merlin.pyc
??? merlin.sh
Run Code Online (Sandbox Code Playgroud)

The merlin.pyc script is called and from there various other scripts in the merlin directory are executed.

Part of the way through the process I get the error:

Traceback (most recent call last):
  File "strats/merlin.py", line 13, in <module>
  File "strats/merlin/tradeopt.py", line 11, in <module>
ModuleNotFoundError: No module named 'merlin.tradelogic'
Run Code Online (Sandbox Code Playgroud)

The new environment is running python version

[user@localhost mktdata.out]$ python --version
Python 2.7.15
Run Code Online (Sandbox Code Playgroud)

Where as the old environment was running python version:

Python 3.5.3
Run Code Online (Sandbox Code Playgroud)

In the new environment I am running gcc version:

[user@localhost mktdata.out]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 7.3.1 20180712 (Red Hat 7.3.1-6) (GCC)  
Run Code Online (Sandbox Code Playgroud)

In the new environment I am running g++ version:

[user@localhost mktdata.out]$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 7.3.1 20180712 (Red Hat 7.3.1-6) (GCC) 
Run Code Online (Sandbox Code Playgroud)

原谅我的无知,但我需要使用Python 2.7.15重新编译的问题tradelogic.cpython-35m-darwin.so,并tradega.cpython-35m-darwin.so让我的新环境,使用Python版本(2.7.15)可以读?如果正确,我需要编译tradelogic.cpptradega.cpp获取两个新.so文件吗?

如果不是这种情况,我该怎么做才能解决我的问题?