Invalid Operation Exception Wallacei

Hello,

I’m trying to run some optimization using Wallacei. Due to complexity of the analysis, I need to use python component for evaluation. I get this error:

  1. Error begin run (InvalidOperationException): The calling thread cannot access this object because a different thread owns it.

Any ideas how ti fix this? I think python and Wallacei are fighting over the same thread.
Sample.gh (71.9 KB)

Thank you in advance.