Try adjusting the environment variable OMP_NUM_THREADS which affects the number of threads used by MKL (and usually OpenBLAS) for parallel workloads. The default is the number of virtual CPUs which is often too high on multi-core multi-socket systems. Try setting it to half the number of vCPUs or even fewer.
For example:
OMP_NUM_THREADS=8 python myscript.py