Solved by zwacke in post #4 
              
              
                I eventually solved my problem and i’ll leave the solution here so hopefully someone else will be spared the pain. 
It had nothing to do with python version or interactive shells. I tried different environments, none made it work. The error was related to pickling/dictionaries/windows/python. 
My py…