In that case, try to add the if-clause as described in the link I’ve posted.
There is a known issue on Windows machines using multiprocessing.
PS: You can add code snippets using three backticks ``` 
This makes is easier to read the code and your code can be found by the search engine in this board.