Solved by Yaroslav_Bulatov in post #13 
              
              
                MKL has extra handling for CPU parallelism. The following two things always worked for me to restrict MKL usage to 1 core: 
1. taskset 0x1 python myscript.py
2. OMP_NUM_THREADS=1 python myscript.py